BaseAudioContext.createConstantSource()

Baseline Widely available

This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2021.

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

Syntax

var constantSourceNode = AudioContext.createConstantSource()

Parameters

None.

Returns

A ConstantSourceNode instance.

Specifications

Specification
Web Audio API
# dom-baseaudiocontext-createconstantsource

Browser Compatibility

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
createConstantSource

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support