AudioSink.InitializationException


class AudioSink.InitializationException : Exception


Thrown when a failure occurs initializing the sink.

Summary

Public constructors

InitializationException(
    audioTrackState: Int,
    sampleRate: Int,
    channelConfig: Int,
    bufferSize: Int,
    format: Format!,
    isRecoverable: Boolean,
    audioTrackException: Exception?
)

Creates a new instance.

Public properties

Int

The underlying AudioTrack's state.

Format!

The input Format of the sink when the error occurs.

Boolean

If the exception can be recovered by recreating the sink.

Public constructors

InitializationException

InitializationException(
    audioTrackState: Int,
    sampleRate: Int,
    channelConfig: Int,
    bufferSize: Int,
    format: Format!,
    isRecoverable: Boolean,
    audioTrackException: Exception?
)

Creates a new instance.

Parameters
audioTrackState: Int

The underlying AudioTrack's state.

sampleRate: Int

The requested sample rate in Hz.

channelConfig: Int

The requested channel configuration.

bufferSize: Int

The requested buffer size in bytes.

format: Format!

The input format of the sink when the error occurs.

isRecoverable: Boolean

Whether the exception can be recovered by recreating the sink.

audioTrackException: Exception?

Exception thrown during the creation of the AudioTrack.

Public properties

audioTrackState

val audioTrackStateInt

The underlying AudioTrack's state.

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.