AudioScheduledSourceNode interface—part of the Web Audio API—is a parent interface for several types of audio source node interfaces which share the ability to be started and stopped, optionally at specified times. Specifically, this interface defines the
stop() methods, as well as the
Unless stated otherwise, nodes based upon
AudioScheduledSourceNode output silence when not playing (that is, before
start() is called and after
stop() is called). Silence is represented, as always, by a stream of samples with the value zero (0).
Inherits properties from its parent interface,
Inherits methods from its parent interface,
AudioNode, and adds the following methods:
Listen to these events using
addEventListener() or by assigning an event listener to the
oneventname property of this interface:
Fired when the source node has stopped playing, either because it's reached a predetermined stop time, the full duration of the audio has been performed, or because the entire buffer has been played.
|Web Audio API |
BCD tables only load in the browser