BaseAudioContext.createConstantSource()

The createConstantSource() property of the BaseAudioContext interface creates a ConstantSourceNode object, which is an audio source that continuously outputs a monaural (one-channel) sound signal whose samples all have the same value.

Syntax

var constantSourceNode = AudioContext.createConstantSource()

Parameters

None.

Returns

A ConstantSourceNode instance.

Specifications

Specification Status Comment
Web Audio API
The definition of 'createConstantSource()' in that specification.
Working Draft Initial definition.

Browser Compatibility

FeatureChromeEdgeFirefoxInternet ExplorerOperaSafari
Basic support56 ? Yes No43 ?
Implemented on AudioContext10 webkit Yes25 No

22

15 webkit

6 webkit
FeatureAndroid webviewChrome for AndroidEdge mobileFirefox for AndroidOpera AndroidiOS SafariSamsung Internet
Basic support5656 ? Yes43 No ?
Implemented on AudioContext Yes33 Yes26 Yes No ?

Document Tags and Contributors

Last updated by: fscholz,