ConstantSourceNode

js.html.EventTargetAudioNodeAudioScheduledSourceNodejs.html.audio.ConstantSourceNode (extern class)

The ConstantSourceNode interface—part of the Web Audio API—represents an audio source (based upon AudioScheduledSourceNode) whose output is single unchanging value. This makes it useful for cases in which you need a constant value coming in from an audio source. In addition, it can be used like a constructible AudioParam by automating the value of its offset or by connecting another node to it; see Controlling multiple parameters with ConstantSourceNode.

Documentation ConstantSourceNode by Mozilla Contributors, licensed under CC-BY-SA 2.5.

See:

Instance Members

offset: AudioParam

An AudioParam which specifies the value that this source continuously outputs. The default value is 1.0.


Name Type Default
context BaseAudioContext
options Null<ConstantSourceOptions> (optional)