This represents an audio engine and it is responsible to play, synchronize and analyse sounds throughout the application.
Defines if Babylon should emit a warning if WebAudio is not supported.
Gets the current AudioContext if available.
Gets whether the current host supports Web Audio and thus could create AudioContexts.
Gets whether or not mp3 are supported by your browser.
Gets whether or not ogg are supported by your browser.
The master gain node defines the global audio volume of your audio engine.
Event raised when audio has been locked on the browser.
Event raised when audio has been unlocked on the browser.
Gets whether or not the audio engine is unlocked (require first a user gesture on some browser).
Defines if the audio engine relies on a custom unlocked button. In this case, the embedded button will not be displayed.
Releases all held resources
Flags the audio engine in Locked state. This happens due to new browser policies preventing audio to autoplay.
Unlocks the audio engine once a user action has been done on the dom. This is helpful to resume play once browser policies have been satisfied.
Generated using TypeDoc