- gain
- output gain for all channels.
Documentation for this section has not yet been entered.
Sets the specified output gain value on all channels of this track.
Gain values are clamped to the closed interval [0.0, max] where max is the value of AudioTrack.MaxVolume. A value of 0.0 results in zero gain (silence), and a value of 1.0 means unity gain (signal unchanged). The default value is 1.0 meaning unity gain.
This API is preferred over AudioTrack.SetStereoVolume(float, System.Single), as it more gracefully scales down to mono, and up to multi-channel content beyond stereo.
The word "volume" in the API name is historical; this is actually a linear gain.