GainNode
js.html.EventTarget → AudioNode → js.html.audio.GainNode (extern class)
The GainNode interface represents a change in volume. It is an AudioNode audio-processing module that causes a given gain to be applied to the input data before its propagation to the output. A GainNode always has exactly one input and one output, both with the same number of channels.
Documentation GainNode by Mozilla Contributors, licensed under CC-BY-SA 2.5.
See:
Instance Members
gain: AudioParamIs an a-rate AudioParam representing the amount of gain to apply. You have to set AudioParam.value or use the methods of AudioParam to change the effect of gain.
new(context: BaseAudioContext, ?options: Null<GainOptions>): Void| Name | Type | Default |
|---|---|---|
context |
BaseAudioContext | |
options |
Null<GainOptions> | (optional) |