bufferSource
BufferSource, formally known as AudioBufferSourceNode in the Web Audio API, is a node that provides a source of audio data for real‑time audio processing in web applications. It consumes an AudioBuffer, which contains raw sample data for one or more channels, and converts that data into an audio stream that can be routed through the Web Audio graph. The node does not store state beyond its initial configuration; when a buffer source is started it plays the buffer from the beginning and then stops automatically once the buffer has finished playing.
An AudioBufferSourceNode has a handful of configurable properties: loop indicates whether playback should repeat indefinitely, loopStart
Typical usage involves creating an AudioContext, decoding audio data into an AudioBuffer via decodeAudioData, instantiating an