createBufferSource abstract method
The createBufferSource()
method of the BaseAudioContext
is used to create a new AudioBufferSourceNode, which can be
used to play audio data contained within an AudioBuffer object.
AudioBuffers are created using BaseAudioContext.createBuffer or
returned by BaseAudioContext.decodeAudioData when it successfully
decodes an audio track.
Note: The
AudioBufferSourceNode.AudioBufferSourceNode
constructor is the recommended way to create a AudioBufferSourceNode; see Creating an AudioNode.
Implementation
AudioBufferSourceNode createBufferSource();