AudioSink.WriteException
public final class AudioSink.WriteException extends Exception
| java.lang.Object | |||
| ↳ | kotlin.Throwable | ||
| ↳ | java.lang.Exception | ||
| ↳ | androidx.media3.exoplayer.audio.AudioSink.WriteException |
Thrown when a failure occurs writing to the sink.
Summary
Public fields |
|
|---|---|
final int |
The error value returned from the sink implementation. |
final Format |
The input |
final boolean |
If the exception can be recovered by recreating the sink. |
Public constructors |
|---|
WriteException(int errorCode, Format format, boolean isRecoverable)Creates an instance. |
Inherited methods |
|---|
Public fields
errorCode
public final int errorCode
The error value returned from the sink implementation. If the sink writes to a platform AudioTrack, this will be the error value returned from write or write. Otherwise, the meaning of the error code depends on the sink implementation.
isRecoverable
public final boolean isRecoverable
If the exception can be recovered by recreating the sink.
Public constructors
WriteException
public WriteException(int errorCode, Format format, boolean isRecoverable)
Creates an instance.
| Parameters | |
|---|---|
int errorCode |
The error value returned from the sink implementation. |
Format format |
The input format of the sink when the error occurs. |
boolean isRecoverable |
Whether the exception can be recovered by recreating the sink. |