Readonly
analyserContext Analyser node
Set to false ignore suspending when window is blurred
Readonly
compressorContext Compressor node
Handle global events
Sets the muted state.
Readonly
speedGlobal speed of all sounds
Sets the volume from 0 to 1.
The WebAudio API AudioContext object.
The destination output audio node
The WebAudio API OfflineAudioContext object.
Set the paused state for all sound
Static
AudioGet AudioContext class, if not supported returns null
Static
OfflineGet OfflineAudioContext class, if not supported returns null
Decode the audio data
Buffer from loader
When completed, error and audioBuffer are parameters.
Destroy this context.
Plays an empty sound in the web audio context. This is used to enable web audio on iOS devices, as they require the first sound to be played inside of a user initiated event (touch/click).
Emit event when muted, volume or speed changes
Emit event when muted, volume or speed changes
Toggles the muted state.
The current muted state.
Toggles the paused state.
The current muted state.
Main class to handle WebAudio API. There's a simple chain of AudioNode elements: analyser > compressor > context.destination. any filters that are added are inserted between the analyser and compressor nodes
Memberof
webaudio