AudioSink.WriteException


class AudioSink.WriteException : Exception


Thrown when a failure occurs writing to the sink.

Summary

Public constructors

WriteException(errorCode: Int, format: Format!, isRecoverable: Boolean)

Creates an instance.

Public properties

Int

The error value returned from the sink implementation.

Format!

The input Format of the sink when the error occurs.

Boolean

If the exception can be recovered by recreating the sink.

Public constructors

WriteException

WriteException(errorCode: Int, format: Format!, isRecoverable: Boolean)

Creates an instance.

Parameters
errorCode: Int

The error value returned from the sink implementation.

format: Format!

The input format of the sink when the error occurs.

isRecoverable: Boolean

Whether the exception can be recovered by recreating the sink.

Public properties

errorCode

val errorCodeInt

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.

format

val formatFormat!

The input Format of the sink when the error occurs.

isRecoverable

val isRecoverableBoolean

If the exception can be recovered by recreating the sink.