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.
You can't create an AudioScheduledSourceNode
object directly. Instead, use the interface which extends it, such as AudioBufferSourceNode
, OscillatorNode
, and ConstantSourceNode
.
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:
onended
ended
event is fired, indicating that the node has finished playing.Inherits methods from its parent interface, AudioNode
, and adds the following methods:
start()
stop()
Specification | Status | Comment |
---|---|---|
Web Audio API The definition of 'AudioScheduledSourceNode' in that specification. | Working Draft |
Desktop | ||||||
---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | |
Basic support | 57
|
? | 53
|
No | 44
|
? |
onended |
57
|
? | 53 | No | 15 | ? |
start |
57
|
? | 53 | No | 15 | ? |
stop |
57
|
? | 53 | No | 15 | ? |
Mobile | |||||||
---|---|---|---|---|---|---|---|
Android webview | Chrome for Android | Edge Mobile | Firefox for Android | Opera for Android | iOS Safari | Samsung Internet | |
Basic support | 57
|
57
|
? | 53
|
44
|
? | 7.0 |
onended |
57
|
57
|
? | 25 | 15 | ? | Yes |
start |
57
|
57
|
? | 25 | 15 | ? | Yes |
stop |
57
|
57
|
? | 25 | 15 | ? | Yes |
© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/AudioScheduledSourceNode