AudioTrack.SetVolume(Single) AudioTrack.SetVolume(Single) Method

Definition

Sets the specified output gain value on all channels of this track.

[Android.Runtime.Register("setVolume", "(F)I", "GetSetVolume_FHandler", ApiSince=21)]
public virtual Android.Media.TrackStatus SetVolume (float gain);
abstract member SetVolume : single -> Android.Media.TrackStatus
override this.SetVolume : single -> Android.Media.TrackStatus

Parameters

gain
Single Single

output gain for all channels.

Returns

Remarks

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