Method SetGain
SetGain(float, double)
Sets the source gain to a new level over the specified duration.
public void SetGain(float value, double duration)
Parameters
valuefloatThe gain level, where 1 represents the original signal amplitude.
durationdoubleThe length of the gain ramp, in seconds. A duration of zero changes the gain immediately.
Remarks
The source gain scales every output channel uniformly and is independent of the per-channel gain. The effective gain applied to a channel is the product of the source gain and the per-channel gain for that channel.