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

Feature Chrome Firefox (Gecko) Internet Explorer Opera Safari (WebKit)
Basic support 56.0 (Yes) ? 43 ?
Implemented on AudioContext 10.0webkit (Yes) No support 15.0webkit
22 (unprefixed)
6.0webkit
Feature Android Android Webview Firefox Mobile (Gecko) IE Mobile Opera Mobile Safari Mobile Chrome for Android
Basic support No support 56.0 (Yes) ? 43 ? 56.0
Implemented on AudioContext ? (Yes) 26.0 ? ? ? 33.0

Document Tags and Contributors

 Contributors to this page: chrisdavidmills, bunnybooboo, jpmedley
 Last updated by: chrisdavidmills,