|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectcom.crickettechnology.audio.Bank
public final class Bank
A bank of memory-resident sounds.
| Method Summary | |
|---|---|
void |
destroy()
Destroy this object. |
static Bank |
find(java.lang.String name)
Find a loaded bank by name. |
java.lang.String |
getName()
Returns the name of the bank. |
int |
getNumSounds()
Returns the number of sounds in the bank. |
java.lang.String |
getSoundName(int index)
Returns the name of a sound in this bank. |
boolean |
isFailed()
Returns true if an asynchronously loaded bank had an error during loading. |
boolean |
isLoaded()
Returns true when an asynchronously loaded bank has finished loading. |
static Bank |
newBank(java.lang.String filename)
Loads a bank from an asset in the .apk. |
static Bank |
newBank(java.lang.String filename,
PathType pathType)
Loads a bank. |
static Bank |
newBankAsync(java.lang.String filename)
Loads a bank asynchronously from an asset in the .apk. |
static Bank |
newBankAsync(java.lang.String filename,
PathType pathType)
Loads a bank asynchronously. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Method Detail |
|---|
public boolean isLoaded()
public boolean isFailed()
public java.lang.String getName()
public int getNumSounds()
public java.lang.String getSoundName(int index)
public static Bank newBank(java.lang.String filename,
PathType pathType)
filename - Path to the bank file (.ckb).pathType - Indicates how the path is to be interpreted.
public static Bank newBank(java.lang.String filename)
filename - Path to the bank file (.ckb).
public static Bank newBankAsync(java.lang.String filename,
PathType pathType)
filename - Path to the bank file (.ckb).pathType - Indicates how the path is to be interpreted.
public static Bank newBankAsync(java.lang.String filename)
filename - Path to the bank file (.ckb).
public static Bank find(java.lang.String name)
name - The bank name; should be 31 characters or less
public void destroy()
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||