Condividi tramite


SoundPool.Unload(Int32) Method

Definition

Unload a sound from a sound ID.

[Android.Runtime.Register("unload", "(I)Z", "")]
public bool Unload (int soundID);
[<Android.Runtime.Register("unload", "(I)Z", "")>]
member this.Unload : int -> bool

Parameters

soundID
Int32

a soundID returned by the load() function

Returns

true if just unloaded, false if previously unloaded

Attributes

Remarks

Unload a sound from a sound ID.

Unloads the sound specified by the soundID. This is the value returned by the load() function. Returns true if the sound is successfully unloaded, false if the sound was already unloaded.

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