createBufferSource method

AudioBufferSourceNode createBufferSource()

The createBufferSource() method of the BaseAudioContext Interface 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

external AudioBufferSourceNode createBufferSource();