AudioTrack.SetStereoVolume(Single, Single) Method

Definition

Caution

deprecated

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

[Android.Runtime.Register("setStereoVolume", "(FF)I", "GetSetStereoVolume_FFHandler")]
[System.Obsolete("deprecated")]
public virtual Android.Media.TrackStatus SetStereoVolume (float leftGain, float rightGain);
[<Android.Runtime.Register("setStereoVolume", "(FF)I", "GetSetStereoVolume_FFHandler")>]
[<System.Obsolete("deprecated")>]
abstract member SetStereoVolume : single * single -> Android.Media.TrackStatus
override this.SetStereoVolume : single * single -> Android.Media.TrackStatus

Parameters

leftGain
Single

output gain for the left channel.

rightGain
Single

output gain for the right channel

Returns

TrackStatus

error code or success, see #SUCCESS, #ERROR_INVALID_OPERATION

Attributes

Remarks

Java documentation for android.media.AudioTrack.setStereoVolume(float, float).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to