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

BCD tables only load in the browser