AudioOutput.WriteException


class AudioOutput.WriteException : Exception


Thrown when a failure occurs writing to the output.

Summary

Public constructors

WriteException(errorCode: Int, isRecoverable: Boolean)

Creates an instance.

Public properties

Int

The error value returned from the implementation.

Boolean

If the exception may be recovered by recreating the output.

Public constructors

WriteException

WriteException(errorCode: Int, isRecoverable: Boolean)

Creates an instance.

Parameters
errorCode: Int

The error value returned from the output implementation.

isRecoverable: Boolean

Whether the exception can be recovered by recreating the output.

Public properties

errorCode

val errorCode: Int

The error value returned from the 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 implementation.

isRecoverable

val isRecoverable: Boolean

If the exception may be recovered by recreating the output.