Android.Media.SoundPool.SetVolume Method
Set stream volume.

Syntax

[Android.Runtime.Register("setVolume", "(IFF)V", "")]
public void SetVolume (int streamID, float leftVolume, float rightVolume)

Parameters

streamID
a streamID returned by the play() function
leftVolume
left volume value (range = 0.0 to 1.0)
rightVolume
right volume value (range = 0.0 to 1.0)

Remarks

Set stream volume. Sets the volume on the stream specified by the streamID. This is the value returned by the play() function. The value must be in the range of 0.0 to 1.0. If the stream does not exist, it will have no effect.

[Android Documentation]

Requirements

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