Share via


SoundPool.SetPriority(Int32, Int32) Method

Definition

Change stream priority.

[Android.Runtime.Register("setPriority", "(II)V", "")]
public void SetPriority (int streamID, int priority);
[<Android.Runtime.Register("setPriority", "(II)V", "")>]
member this.SetPriority : int * int -> unit

Parameters

streamID
Int32

a streamID returned by the play() function

priority
Int32
Attributes

Remarks

Change stream priority.

Change the priority of the stream specified by the streamID. This is the value returned by the play() function. Affects the order in which streams are re-used to play new sounds. If the stream does not exist, it will have no effect.

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