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. |