Serializablepublic static final class AudioSink.InitializationException extends Exception
| Modifier and Type | Field | Description |
|---|---|---|
int |
audioTrackState |
The underlying
AudioTrack's state. |
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 |
|---|---|
InitializationException(int audioTrackState,
int sampleRate,
int channelConfig,
int bufferSize,
Format format,
boolean isRecoverable,
Exception audioTrackException) |
Creates a new 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 audioTrackState
AudioTrack's state.public final boolean isRecoverable
public InitializationException(int audioTrackState,
int sampleRate,
int channelConfig,
int bufferSize,
Format format,
boolean isRecoverable,
@Nullable
Exception audioTrackException)
audioTrackState - The underlying AudioTrack's state.sampleRate - The requested sample rate in Hz.channelConfig - The requested channel configuration.bufferSize - The requested buffer size in bytes.format - The input format of the sink when the error occurs.isRecoverable - Whether the exception can be recovered by recreating the sink.audioTrackException - Exception thrown during the creation of the AudioTrack.