AudioOutputProvider.OutputConfig


public final class AudioOutputProvider.OutputConfig


Configuration for an AudioOutput.

Summary

Nested types

Builder for OutputConfig instances.

Public fields

final AudioAttributes

The AudioAttributes for the audio output.

final int

The audio session ID.

final int

The buffer size of the output in bytes.

final int

The channel configuration of the output.

final int

The C.Encoding of the audio data.

final boolean

Whether offload is enabled for this output.

final boolean

Whether tunneling is enabled for this output.

final int

The sample rate of the audio data.

final boolean

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

final boolean

Whether playback speed control is enabled for this output.

final int

The virtual device ID, or INDEX_UNSET if not specified.

Public methods

AudioOutputProvider.OutputConfig.Builder

Returns a Builder initialized with the values of this instance.

boolean
int

Public fields

audioAttributes

public final AudioAttributes audioAttributes

The AudioAttributes for the audio output.

audioSessionId

public final int audioSessionId

The audio session ID.

bufferSize

public final int bufferSize

The buffer size of the output in bytes.

channelConfig

public final int channelConfig

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

encoding

@C.Encoding
public final int encoding

The C.Encoding of the audio data.

isOffload

public final boolean isOffload

Whether offload is enabled for this output.

isTunneling

public final boolean isTunneling

Whether tunneling is enabled for this output.

sampleRate

public final int sampleRate

The sample rate of the audio data.

useOffloadGapless

public final boolean useOffloadGapless

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

usePlaybackParameters

public final boolean usePlaybackParameters

Whether playback speed control is enabled for this output.

virtualDeviceId

public final int virtualDeviceId

The virtual device ID, or INDEX_UNSET if not specified.

Public methods

buildUpon

public AudioOutputProvider.OutputConfig.Builder buildUpon()

Returns a Builder initialized with the values of this instance.

equals

public boolean equals(@Nullable Object o)

hashCode

public int hashCode()