BaseAudioContext.createConstantSource()

 createConstantSource()BaseAudioContext 接口的一个方法, 用于生成一个 ConstantSourceNode (en-US) 对象, 该对象是一个输出单信道(one-channel)音频信号的音频源,这些音频信号都拥有一个恒定的样本值。

Syntax

var constantSourceNode = AudioContext.createConstantSource()

Parameters

None.

Returns

A ConstantSourceNode (en-US) instance.

Specifications

Specification Status Comment
Web Audio API
createConstantSource()
Working Draft Initial definition.

Browser Compatibility

We're converting our compatibility data into a machine-readable JSON format. This compatibility table still uses the old format, because we haven't yet converted the data it contains. Find out how you can help! (en-US)
Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 56.0 (Yes) ? 43 ?
Implemented on AudioContext 10.0webkit (en-US) (Yes) 未实现 15.0webkit (en-US)
22 (unprefixed)
6.0webkit (en-US)
Feature Android Android Webview Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support 未实现 56.0 (Yes) ? 43 ? 56.0
Implemented on AudioContext ? (Yes) 26.0 ? ? ? 33.0