audioManager

audioManager manages all of the audio. howler.js 2.2.1. audioManager uses hower.js as a base and builds off of it to automatically interact with the rest of the engine,

virtuosity.audioManager

Classes

Methods


Classes

Audio

An audio entity created with:

new virtuosity.audioManager.Audio(name, path);

new virtuosity.audioManager.Audio();


Methods

setGlobalVolume

sets the global maximum volume

virtuosity.audioManager.setGlobalVolume(volume);


Parameter Type Description
volume Number the global maximum value between 0-1 (1 being the loudest).

get

get an audio entity

virtuosity.audioManager.get(name);


Parameter Type Description
name String name of the audio entity

delete

deletes an audio entity

virtuosity.audioManager.delete(name);


Parameter Type Description
name String name of the audio entity