AudioSink.AudioSinkConfig


class AudioSink.AudioSinkConfig


Configuration parameters for configuring the audio sink.

Summary

Nested types

Builder for AudioSinkConfig.

Public functions

AudioSink.AudioSinkConfig.Builder!

Creates a Builder from the current values.

Boolean
equals(o: Any?)
Int

Public properties

Format!

The format of audio data provided in the input buffers.

MediaSource.MediaPeriodId?

The MediaPeriodId of the playback this audio sink is configured for, or null if undefined.

ImmutableIntArray?

A mapping from input to output channels that is applied to this sink's input as a preprocessing step, if handling PCM input.

Int

This property is deprecated.

Use similar config values on lower-level components like preferredBufferSize instead.

Timeline!

The Timeline of the playback this audio sink is configured for, or EMPTY if undefined.

Public functions

buildUpon

fun buildUpon(): AudioSink.AudioSinkConfig.Builder!

Creates a Builder from the current values.

equals

fun equals(o: Any?): Boolean

hashCode

fun hashCode(): Int

Public properties

format

val formatFormat!

The format of audio data provided in the input buffers.

mediaPeriodId

val mediaPeriodIdMediaSource.MediaPeriodId?

The MediaPeriodId of the playback this audio sink is configured for, or null if undefined.

Can be used together with the Timeline to identify the concrete item in the playlist.

outputChannelMapping

val outputChannelMappingImmutableIntArray?

A mapping from input to output channels that is applied to this sink's input as a preprocessing step, if handling PCM input. null leaves the input unchanged. Otherwise, the element at index i specifies index of the input channel to map to output channel i when preprocessing input buffers. After the map is applied the audio data will have outputChannels.length channels.

preferredBufferSizeOverride

val preferredBufferSizeOverrideInt

A specific size for the playback buffer in bytes, or 0 to infer a suitable buffer size automatically.

timeline

val timelineTimeline!

The Timeline of the playback this audio sink is configured for, or EMPTY if undefined.

Can be used together with the MediaPeriodId to identify the concrete item in the playlist.