DefaultAudioOffloadSupportProvider


@UnstableApi
class DefaultAudioOffloadSupportProvider : DefaultAudioSink.AudioOffloadSupportProvider


Provides the AudioOffloadSupport capabilities for a Format and .

Summary

Public constructors

Creates an instance.

Creates an instance.

Public functions

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

DefaultAudioOffloadSupportProvider()

Creates an instance.

DefaultAudioOffloadSupportProvider

DefaultAudioOffloadSupportProvider(context: Context?)

Creates an instance.

Parameters
context: Context?

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

Public functions

getAudioOffloadSupport

fun getAudioOffloadSupport(format: Format!, audioAttributes: AudioAttributes!): AudioOffloadSupport!

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.