BaseAudioContext: createConstantSource() method
Web Audio API
Web Audio API
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.
> [!NOTE]
> The ConstantSourceNode()
> constructor is the recommended way to create a ConstantSourceNode; see
> [Creating an AudioNode](/docs/Web/API/AudioNode#creating_an_audionode).
## Syntax
```js-nolint
createConstantSource()
```
### Parameters
None.
### Return value
A ConstantSourceNode instance.
## Specifications
## Browser compatibility
source: MDN Web Docs mirror · page
Cite this
"BaseAudioContext: createConstantSource() method". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/BaseAudioContext/createConstantSource JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy