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 new AudioBufferSourceNode.
The buffer to play.
Optional
options: PlayOptionsThe options to apply on playback.
Protected
onWill be called when an AudioBufferSourceNode ended.
The AudioBufferSourceNode node that ended.
Play an audio buffer.
A new AudioBufferSourceNode.
The buffer to play.
Optional
options: PlayOptionsThe options to apply on playback.
Play an audio buffer on a channel. If an AudioBufferSourceNode is already running on the specified channel, it will be stopped first.
A new AudioBufferSourceNode.
The channel to play the buffer on.
The buffer to play.
Optional
options: PlayOptionsThe options to apply on playback.
Generated using TypeDoc
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.