AudioScheduledSourceNode

js.html.EventTargetAudioNodejs.html.audio.AudioScheduledSourceNode (extern class) → AudioBufferSourceNode, ConstantSourceNode, OscillatorNode

The 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 start() and stop() methods, as well as the onended event handler.

Documentation AudioScheduledSourceNode by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Instance Members

A function to be called when the ended event is fired, indicating that the node has finished playing.


start(?when: Float = 0.0): Void
Name Type Default
when Float 0.0

stop(?when: Float = 0.0): Void
Name Type Default
when Float 0.0