Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Field and Description |
---|---|
static int |
MAX_STREAMS |
Modifier and Type | Method and Description |
---|---|
void |
enable(boolean value) |
boolean |
isEnabled() |
void |
load(java.lang.String asset) |
void |
onLoadComplete(android.media.SoundPool soundPool,
int sampleId,
int status) |
void |
pause() |
int |
play(java.lang.String id) |
int |
play(java.lang.String id,
float volume) |
int |
play(java.lang.String id,
float leftVolume,
float rightVolume,
float rate) |
void |
reset() |
void |
resume() |
void |
unload(java.lang.Object src) |
static Sample |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Sample[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Sample INSTANCE
public static final int MAX_STREAMS
public static Sample[] values()
for (Sample c : Sample.values()) System.out.println(c);
public static Sample valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic void reset()
public void pause()
public void resume()
public void load(java.lang.String asset)
public void unload(java.lang.Object src)
public int play(java.lang.String id)
public int play(java.lang.String id, float volume)
public int play(java.lang.String id, float leftVolume, float rightVolume, float rate)
public void enable(boolean value)
public boolean isEnabled()
public void onLoadComplete(android.media.SoundPool soundPool, int sampleId, int status)
onLoadComplete
in interface android.media.SoundPool.OnLoadCompleteListener