The destination node to connect to.
Optional
options: SoundSourceOptionsThe options to apply.
Protected
Readonly
channelsAll sounds played on a channel.
Optional
Readonly
gainThe gain node if configured.
Readonly
nodeThe destination node to connect AudioBufferSourceNode AudioBufferSourceNodes to. In the case of a SoundSource, this will be the panner node.
Protected
Readonly
soundsAll free sounds (those not played on a channel).
Protected
createCreates an AudioBufferSourceNode and adds an "ended" event listener to its node.
The buffer to play.
Optional
options: PlayOptionsThe options to apply on playback.
The new AudioBufferSourceNode.
Protected
onWill be called when an AudioBufferSourceNode ended.
The AudioBufferSourceNode node that ended.
Play an audio buffer.
The buffer to play.
Optional
options: PlayOptionsThe options to apply on playback.
A new AudioBufferSourceNode.
Play an audio buffer on a channel. If an AudioBufferSourceNode is already running on the specified channel, it will be stopped first.
The channel to play the buffer on.
The buffer to play.
Optional
options: PlayOptionsThe options to apply on playback.
A new AudioBufferSourceNode.
A sound source is a way to position and orient sounds in the world. If you don't need to position your sounds, you can work with a SoundPlayer instead.