SoundPool.SetVolume(Int32, Single, Single) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Set stream volume.
[Android.Runtime.Register("setVolume", "(IFF)V", "")]
public void SetVolume (int streamID, float leftVolume, float rightVolume);
[<Android.Runtime.Register("setVolume", "(IFF)V", "")>]
member this.SetVolume : int * single * single -> unit
Parameters
- streamID
- Int32
a streamID returned by the play() function
- leftVolume
- Single
left volume value (range = 0.0 to 1.0)
- rightVolume
- Single
right volume value (range = 0.0 to 1.0)
- Attributes
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.
Java documentation for android.media.SoundPool.setVolume(int, 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.