buffer
Summary
Represents the audio asset to be played.
Property of apis/webaudio/AudioBufferSourceNodeapis/webaudio/AudioBufferSourceNode
Syntax
var result = AudioBufferSourceNode.buffer;
AudioBufferSourceNode.buffer = value;
Examples
var source = audioCtx.createBufferSource();
// from audioCtx.createBuffer, or audioCtx.decodeAudioData
source.buffer = myBuffer;
Related specifications
- Web Audio API
- W3C Editor’s Draft