|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.hermit.android.io.AudioReader.Listener
public abstract static class AudioReader.Listener
Listener for audio reads.
Field Summary | |
---|---|
static int |
ERR_INIT_FAILED
Audio read error code: the audio reader failed to initialise. |
static int |
ERR_OK
Audio read error code: no error. |
static int |
ERR_READ_FAILED
Audio read error code: an audio read failed. |
Constructor Summary | |
---|---|
AudioReader.Listener()
|
Method Summary | |
---|---|
abstract void |
onReadComplete(short[] buffer)
An audio read has completed. |
abstract void |
onReadError(int error)
An error has occurred. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int ERR_OK
public static final int ERR_INIT_FAILED
public static final int ERR_READ_FAILED
Constructor Detail |
---|
public AudioReader.Listener()
Method Detail |
---|
public abstract void onReadComplete(short[] buffer)
buffer
- Buffer containing the data.public abstract void onReadError(int error)
error
- ERR_XXX code describing the error.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |