globalAudioManager: IAudioManager = ...

Global instance of a AudioManager.

To construct an AudioManager, the WebAudio API is needed. For non-browser environments, like during the packaging step of the wonderland editor, the globalAudioManager is set to an EmptyAudioManager. It enables the usage of load() and loadBatch() in top-level code.

⚠️ Only load() and loadBatch() can be used in top-level code ⚠️