Serializablepublic static final class AudioSink.WriteException extends Exception
| Modifier and Type | Field | Description |
|---|---|---|
int |
errorCode |
The error value returned from the sink implementation.
|
Format |
format |
The input
Format of the sink when the error occurs. |
boolean |
isRecoverable |
If the exception can be recovered by recreating the sink.
|
| Constructor | Description |
|---|---|
WriteException(int errorCode,
Format format,
boolean isRecoverable) |
Creates an instance.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitaddSuppressed, fillInStackTrace, getCause, getLocalizedMessage, getMessage, getStackTrace, getSuppressed, initCause, printStackTrace, printStackTrace, printStackTrace, setStackTrace, toStringpublic final int errorCode
AudioTrack, this will be the error value returned from
AudioTrack.write(byte[], int, int) or AudioTrack.write(ByteBuffer, int, int).
Otherwise, the meaning of the error code depends on the sink implementation.public final boolean isRecoverable
public WriteException(int errorCode,
Format format,
boolean isRecoverable)
errorCode - The error value returned from the sink implementation.format - The input format of the sink when the error occurs.isRecoverable - Whether the exception can be recovered by recreating the sink.