SoundPool.Stop(Int32) Method

Definition

Stop a playback stream.

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

Parameters

streamID
Int32

a streamID returned by the play() function

Attributes

Remarks

Stop a playback stream.

Stop the stream specified by the streamID. This is the value returned by the play() function. If the stream is playing, it will be stopped. It also releases any native resources associated with this stream. If the stream is not playing, it will have no effect.

Java documentation for android.media.SoundPool.stop(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