DefaultAudioOffloadSupportProvider


@UnstableApi
public final class DefaultAudioOffloadSupportProvider implements DefaultAudioSink.AudioOffloadSupportProvider


Provides the AudioOffloadSupport capabilities for a Format and .

Summary

Public constructors

Creates an instance.

Creates an instance.

Public methods

AudioOffloadSupport
getAudioOffloadSupport(Format format, AudioAttributes audioAttributes)

Returns the AudioOffloadSupport the audio sink can provide for the media based on its Format and AudioAttributes

Public constructors

DefaultAudioOffloadSupportProvider

public DefaultAudioOffloadSupportProvider()

Creates an instance.

DefaultAudioOffloadSupportProvider

public DefaultAudioOffloadSupportProvider(@Nullable Context context)

Creates an instance.

Parameters
@Nullable Context context

The context used to retrieve the AudioManager parameters for checking offload variable rate support.

Public methods

getAudioOffloadSupport

public AudioOffloadSupport getAudioOffloadSupport(Format format, AudioAttributes audioAttributes)

Returns the AudioOffloadSupport the audio sink can provide for the media based on its Format and AudioAttributes

Parameters
Format format

The Format.

AudioAttributes audioAttributes

The AudioAttributes.

Returns
AudioOffloadSupport

The AudioOffloadSupport the sink can provide for the media based on its Format and AudioAttributes.