The createConstantSource() method of the AudioContext Interface creates a new ConstantSourceNode, representing a monaural (1-channel) audio source which generates a constant series of samples whose values are all the same.
var constantSource = AudioContext.createConstantSource();
A ConstantSourceNode representing an audio source that generates an audio signal whose samples all have the same value.
tbd
| Specification | Status | Comment |
|---|---|---|
| Web Audio API The definition of 'createBufferSource()' in that specification. | Working Draft |
| Feature | Chrome | Edge | Firefox (Gecko) | Internet Explorer | Opera | Safari (WebKit) |
|---|---|---|---|---|---|---|
| Basic support | 10.0webkit | (Yes) | No support | 15.0webkit 22 (unprefixed) | 6.0webkit |
| Feature | Android | Edge | Firefox Mobile (Gecko) | Firefox OS | IE Mobile | Opera Mobile | Safari Mobile | Chrome for Android |
|---|---|---|---|---|---|---|---|---|
| Basic support | ? | (Yes) | 26.0 | 1.2 | ? | ? | ? | 33.0 |
© 2005–2017 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/AudioContext/createConstantSource()