Android.Media.AudioTrack.SetStereoVolume Method
Sets the specified left and right output gain values on the AudioTrack.

Syntax

[Android.Runtime.Register("setStereoVolume", "(FF)I", "GetSetStereoVolume_FFHandler")]
[System.Obsolete("deprecated")]
[return:Android.Runtime.GeneratedEnum]
public virtual TrackStatus SetStereoVolume (float leftVolume, float rightVolume)

Parameters

leftGain
output gain for the left channel.
rightGain
output gain for the right channel
leftVolume
output attenuation for the left channel. A value of 0.0f is silence, a value of 1.0f is no attenuation.
rightVolume
output attenuation for the right channel

Returns

Documentation for this section has not yet been entered.

Remarks

Sets the specified left and right output gain values on the AudioTrack.

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.

The word "volume" in the API name is historical; this is actually a linear gain.

[Android Documentation]

Requirements

Namespace: Android.Media
Assembly: Mono.Android (in Mono.Android.dll)
Assembly Versions: 0.0.0.0
Since: Added in API level 3