Path: blob/main/files/en-us/web/api/audiobuffersourcenode/buffer/index.md
6552 views
------{{ APIRef("Web Audio API") }}
The buffer property of the {{ domxref("AudioBufferSourceNode") }} interface provides the ability to play back audio using an {{domxref("AudioBuffer")}} as the source of the sound data.
If the buffer property is set to the value null, the node generates a single channel containing silence (that is, every sample is 0).
Value
An {{domxref("AudioBuffer")}} which contains the data representing the sound which the node will play.
Examples
Note: For a full working example, see this code running live, or view the source.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}