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
onended event handler.
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,
AudioNode, and adds the following properties:
- A function to be called when the
endedevent is fired, indicating that the node has finished playing.
Inherits methods from its parent interface,
AudioNode, and adds the following methods:
- Schedules the node to begin playing the constant sound at the specified time. If no time is specified, the node begins playing immediately.
- Schedules the node to stop playing at the specified time. If no time is specified, the node stops playing at once.
|Web Audio API
The definition of 'AudioScheduledSourceNode' in that specification.
|Feature||Chrome||Edge||Firefox (Gecko)||Internet Explorer||Opera||Safari (WebKit)|
|Basic support||?||?||53 (53)||No support||?||?|
|Feature||Android||Chrome||Firefox Mobile (Gecko)||IE Phone||Opera Mobile||Safari Mobile|
|Basic support||No support||?||53.0 (53)||No support||No support||?|