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

Update compatibility data on GitHub
DesktopMobile
ChromeEdgeFirefoxInternet ExplorerOperaSafariAndroid webviewChrome for AndroidEdge MobileFirefox for AndroidOpera for AndroidSafari on iOSSamsung Internet
createConstantSourceChrome Full support 56Edge ? Firefox Full support 53IE No support NoOpera Full support 43Safari Full support YesWebView Android Full support 56Chrome Android Full support 56Edge Mobile ? Firefox Android Full support 53Opera Android Full support 43Safari iOS No support NoSamsung Internet Android Full support Yes

Legend

Full support  
Full support
No support  
No support
Compatibility unknown  
Compatibility unknown

Document Tags and Contributors

Last updated by: mdnwebdocs-bot,