W3cubDocs

/DOM

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 CompatibilityUpdate compatibility data on GitHub

Desktop
Chrome Edge Firefox Internet Explorer Opera Safari
Basic support 56 ? Yes No 43 ?
Implemented on AudioContext 10
Prefixed
10
Prefixed
Prefixed Requires the vendor prefix: webkit
Yes 25 No 22
22
15
Prefixed
Prefixed Requires the vendor prefix: webkit
6
Prefixed
6
Prefixed
Prefixed Requires the vendor prefix: webkit
Mobile
Android webview Chrome for Android Edge Mobile Firefox for Android Opera for Android iOS Safari Samsung Internet
Basic support 56 56 ? Yes 43 No ?
Implemented on AudioContext Yes 33 Yes 26 Yes No ?

© 2005–2018 Mozilla Developer Network and individual contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createConstantSource