AudioScheduledSourceNode

翻译不完整。 请帮助我们翻译这篇文章!

AudioScheduledSourceNode 接口作为web音频API的一部分,是几种具有在特定时刻开始与停止能力的音频源节点接口的父接口。更具体地来说,这个接口定义了start()stop() 方法,以及onended事件

你不能直接创建AudioScheduledSourceNode。而是应该使用继承于它的子接口,如AudioBufferSourceNode, OscillatorNodeConstantSourceNode.

除非另有说明,基于AudioScheduledSourceNode节点的输出在没有播放时处于静默状态(这种状态在start()之前与stop()之后调用)。静默状态总是由一个全0值流组成。

Properties

Inherits properties from its parent interface, AudioNode, and adds the following properties:

Event handlers

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

Methods

Inherits methods from its parent interface, AudioNode, and adds the following methods:

start()
Schedules the node to begin playing the constant sound at the specified time. If no time is specified, the node begins playing immediately.
stop()
Schedules the node to stop playing at the specified time. If no time is specified, the node stops playing at once.

Specification

Specification Status Comment
Web Audio API
AudioScheduledSourceNode
Working Draft

Browser compatibility

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
AudioScheduledSourceNodeChrome Full support 57
Full support 57
No support 14 — 58
Alternate Name
Alternate Name Uses the non-standard name: AudioSourceNode
Edge Full support ≤79Firefox Full support 53
Full support 53
No support 25 — 53
Alternate Name
Alternate Name Uses the non-standard name: AudioSourceNode
IE No support NoOpera Full support 44
Full support 44
No support 15 — 44
Alternate Name
Alternate Name Uses the non-standard name: AudioSourceNode
Safari ? WebView Android Full support 57
Full support 57
No support ? — 58
Alternate Name
Alternate Name Uses the non-standard name: AudioSourceNode
Chrome Android Full support 57
Full support 57
No support 18 — 58
Alternate Name
Alternate Name Uses the non-standard name: AudioSourceNode
Firefox Android Full support 53
Full support 53
No support 25 — 53
Alternate Name
Alternate Name Uses the non-standard name: AudioSourceNode
Opera Android Full support 44
Full support 44
No support 14 — 44
Alternate Name
Alternate Name Uses the non-standard name: AudioSourceNode
Safari iOS ? Samsung Internet Android Full support 7.0
Full support 7.0
No support 1.0 — 7.0
Alternate Name
Alternate Name Uses the non-standard name: AudioSourceNode
ended eventChrome Full support 14Edge Full support ≤79Firefox Full support 53IE No support NoOpera Full support 15Safari ? WebView Android Full support YesChrome Android Full support 18Firefox Android Full support 25Opera Android Full support 14Safari iOS ? Samsung Internet Android Full support 1.0
onendedChrome Full support 14Edge Full support ≤79Firefox Full support 53IE No support NoOpera Full support 15Safari ? WebView Android Full support YesChrome Android Full support 18Firefox Android Full support 25Opera Android Full support 14Safari iOS ? Samsung Internet Android Full support 1.0
startChrome Full support 14Edge Full support ≤79Firefox Full support 53IE No support NoOpera Full support 15Safari ? WebView Android Full support YesChrome Android Full support 18Firefox Android Full support 25Opera Android Full support 14Safari iOS ? Samsung Internet Android Full support 1.0
stopChrome Full support 14Edge Full support ≤79Firefox Full support 53IE No support NoOpera Full support 15Safari ? WebView Android Full support YesChrome Android Full support 18Firefox Android Full support 25Opera Android Full support 14Safari iOS ? Samsung Internet Android Full support 1.0

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown
Uses a non-standard name.
Uses a non-standard name.

See also