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
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
createConstantSource | Chrome Full support 56 | Edge Full support ≤79 | Firefox Full support 53 | IE No support No | Opera Full support 43 | Safari No support No | WebView Android Full support 56 | Chrome Android Full support 56 | Firefox Android Full support 53 | Opera Android Full support 43 | Safari iOS No support No | Samsung Internet Android Full support 6.0 |
Legend
- Full support
- Full support
- No support
- No support