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 configuration 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 audioAttributesAudioAttributes!

The AudioAttributes for the audio output.

audioSessionId

val audioSessionIdInt

The audio session ID.

bufferSize

val bufferSizeInt

The buffer size of the output in bytes.

channelConfig

val channelConfigInt

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

encoding

@C.Encoding
val encodingInt

The C.Encoding of the audio data.

isOffload

val isOffloadBoolean

Whether offload is enabled for this output.

isTunneling

val isTunnelingBoolean

Whether tunneling is enabled for this output.

sampleRate

val sampleRateInt

The sample rate of the audio data.

useOffloadGapless

val useOffloadGaplessBoolean

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

usePlaybackParameters

val usePlaybackParametersBoolean

Whether playback speed control is enabled for this output.

virtualDeviceId

val virtualDeviceIdInt

The virtual device ID, or INDEX_UNSET if not specified.