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.
Note: The ConstantSourceNode()
constructor is the recommended way to create a ConstantSourceNode
; see
Creating an AudioNode.
Syntax
var constantSourceNode = AudioContext.createConstantSource()
Parameters
None.
Returns
A ConstantSourceNode
instance.
Specifications
Specification |
---|
Web Audio API # dom-baseaudiocontext-createconstantsource |
Browser compatibility
BCD tables only load in the browser