android.media
Class SoundPool
java.lang.Object
android.media.SoundPool
public class SoundPool
- extends Object
|
Constructor Summary |
SoundPool(int maxStreams,
int streamType,
int srcQuality)
|
|
Method Summary |
protected void |
finalize()
Called by the virtual machine when there are no longer any (non-weak)
references to the receiver. |
int |
load(Context context,
int resId,
int priority)
|
int |
load(String path,
int priority)
|
void |
pause(int streamID)
|
int |
play(int soundID,
float leftVolume,
float rightVolume,
int priority,
int loop,
float rate)
|
void |
release()
|
void |
resume(int streamID)
|
void |
setLoop(int streamID,
int loop)
|
void |
setPriority(int streamID,
int priority)
|
void |
setRate(int streamID,
float rate)
|
void |
setVolume(int streamID,
float leftVolume,
float rightVolume)
|
void |
stop(int streamID)
|
boolean |
unload(int soundID)
|
SoundPool
public SoundPool(int maxStreams,
int streamType,
int srcQuality)
load
public int load(String path,
int priority)
load
public int load(Context context,
int resId,
int priority)
unload
public final boolean unload(int soundID)
play
public final int play(int soundID,
float leftVolume,
float rightVolume,
int priority,
int loop,
float rate)
pause
public final void pause(int streamID)
resume
public final void resume(int streamID)
stop
public final void stop(int streamID)
setVolume
public final void setVolume(int streamID,
float leftVolume,
float rightVolume)
setPriority
public final void setPriority(int streamID,
int priority)
setLoop
public final void setLoop(int streamID,
int loop)
setRate
public final void setRate(int streamID,
float rate)
release
public final void release()
finalize
protected void finalize()
- Description copied from class:
Object
- Called by the virtual machine when there are no longer any (non-weak)
references to the receiver. Subclasses can use this facility to guarantee
that any associated resources are cleaned up before the receiver is
garbage collected. Uncaught exceptions which are thrown during the
running of the method cause it to terminate immediately, but are
otherwise ignored.
Note: The virtual machine assumes that the implementation in class Object
is empty.
- Overrides:
finalize in class Object
Please submit a feedback, bug or feature