SoundPool.Pause(Int32) Method

Definition

Pause a playback stream.

[Android.Runtime.Register("pause", "(I)V", "")]
public void Pause (int streamID);
[<Android.Runtime.Register("pause", "(I)V", "")>]
member this.Pause : int -> unit

Parameters

streamID
Int32

a streamID returned by the play() function

Attributes

Remarks

Pause a playback stream.

Pause the stream specified by the streamID. This is the value returned by the play() function. If the stream is playing, it will be paused. If the stream is not playing (e.g. is stopped or was previously paused), calling this function will have no effect.

Java documentation for android.media.SoundPool.pause(int).

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