Audio Manager
Accessing An AudioManager
world.audioManagerUsing An AudioManager
// Returns an array of all loaded audio instances
// for the world
world.audioManager.getAllAudios(); // You can iterate and manipulate each audio from here with .forEach, etc.
// Returns an array of all loaded audio instances
// attached to the provided entity
world.audioManager.getAllEntityAttachedAudios(someEntity);
// Returns an array of all loaded looped audio instances
// with loop: true
world.audioManager.getAllLoopedAudios();
// Returns an array of all loaded one-shot audio instances
// that have loop: false, or omitted loop
world.audioManager.getAllOneshotAudios();Diving Deeper
Last updated
