Table of Contents

Method SetGain

Namespace
Bonsai.Mixer
Assembly
Bonsai.Mixer.dll

SetGain(float, double)

Sets the source gain to a new level over the specified duration.

public void SetGain(float value, double duration)

Parameters

value float

The gain level, where 1 represents the original signal amplitude.

duration double

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