Class: Gain

Gain

new Gain(context, opt_options=)

Creates a Gain. Use to control player volume.
Parameters:
Name Type Argument Default Description
context Object A Web Audio context.
opt_options= Object <optional>
A map of initial properties.
opt_options.value number <optional>
0.1 The gain's initial value.
Source:

Methods

changeGain(val)

Changes the gain.
Parameters:
Name Type Description
val number The gain.
Source: