BaseAudioContext: createConstantSource() method
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since April 2021.
ThecreateConstantSource()property of theBaseAudioContext interface creates aConstantSourceNode object, which is an audio source that continuouslyoutputs a monaural (one-channel) sound signal whose samples all have the samevalue.
Note:TheConstantSourceNode()constructor is the recommended way to create aConstantSourceNode; seeCreating an AudioNode.
In this article
Syntax
js
createConstantSource()Parameters
None.
Return value
AConstantSourceNode instance.
Specifications
| Specification |
|---|
| Web Audio API> # dom-baseaudiocontext-createconstantsource> |