AudioOutputProvider.FormatSupport


public final class AudioOutputProvider.FormatSupport


Level of support for an audio format by the provider.

Summary

Nested types

A builder to create FormatSupport instances.

Constants

static final AudioOutputProvider.FormatSupport

Level of support for an unsupported format.

Public fields

final boolean

Whether the format is supported with offload playback.

final boolean

Whether playback of the format is supported with gapless transitions for offload.

final boolean

Whether playback of the format is supported with speed changes for offload.

final int

The level of support for the format.

Public methods

AudioOutputProvider.FormatSupport.Builder

Creates a new Builder, copying the initial values from this instance.

Constants

UNSUPPORTED

public static final AudioOutputProvider.FormatSupport UNSUPPORTED

Level of support for an unsupported format.

Public fields

isFormatSupportedForOffload

public final boolean isFormatSupportedForOffload

Whether the format is supported with offload playback.

isGaplessSupportedForOffload

public final boolean isGaplessSupportedForOffload

Whether playback of the format is supported with gapless transitions for offload.

isSpeedChangeSupportedForOffload

public final boolean isSpeedChangeSupportedForOffload

Whether playback of the format is supported with speed changes for offload.

supportLevel

@AudioOutputProvider.SupportLevel
public final int supportLevel

The level of support for the format.

Public methods

buildUpon

public AudioOutputProvider.FormatSupport.Builder buildUpon()

Creates a new Builder, copying the initial values from this instance.