AudioOutputProvider.OutputConfig


class AudioOutputProvider.OutputConfig


Configuration for an AudioOutput.

Summary

Nested types

Builder for OutputConfig instances.

Public functions

AudioOutputProvider.OutputConfig.Builder!

Returns a Builder initialized with the values of this instance.

Boolean
equals(o: Any?)
Int

Public properties

AudioAttributes!

The AudioAttributes for the audio output.

Int

The audio session ID.

Int

The buffer size of the output in bytes.

Int

The channel mask of the output.

Int

The C.Encoding of the audio data.

Boolean

Whether offload is enabled for this output.

Boolean

Whether tunneling is enabled for this output.

Int

The sample rate of the audio data.

Boolean

Whether gapless offload playback is enabled for this output via setOffloadDelayPadding.

Boolean

Whether playback speed control is enabled for this output.

Int

The virtual device ID, or INDEX_UNSET if not specified.

Public functions

buildUpon

fun buildUpon(): AudioOutputProvider.OutputConfig.Builder!

Returns a Builder initialized with the values of this instance.

equals

fun equals(o: Any?): Boolean

hashCode

fun hashCode(): Int

Public properties

audioAttributes

val audioAttributes: AudioAttributes!

The AudioAttributes for the audio output.

audioSessionId

val audioSessionId: Int

The audio session ID.

bufferSize

val bufferSize: Int

The buffer size of the output in bytes.

channelMask

val channelMask: Int

The channel mask of the output. See AudioFormat.CHANNEL_OUT_XXX constants like CHANNEL_OUT_5POINT1.

encoding

@C.Encoding
val encoding: Int

The C.Encoding of the audio data.

isOffload

val isOffload: Boolean

Whether offload is enabled for this output.

isTunneling

val isTunneling: Boolean

Whether tunneling is enabled for this output.

sampleRate

val sampleRate: Int

The sample rate of the audio data.

useOffloadGapless

val useOffloadGapless: Boolean

Whether gapless offload playback is enabled for this output via setOffloadDelayPadding.

usePlaybackParameters

val usePlaybackParameters: Boolean

Whether playback speed control is enabled for this output.

virtualDeviceId

val virtualDeviceId: Int

The virtual device ID, or INDEX_UNSET if not specified.