ForwardingAudioOutputProvider


@UnstableApi
class ForwardingAudioOutputProvider : AudioOutputProvider


A forwarding base class that delegates all calls to the provided AudioOutputProvider.

Summary

Public constructors

Creates the forwarding AudioOutputProvider.

Public functions

Unit

Adds a Listener.

AudioOutput!

Returns an AudioOutput for the given config.

AudioOutputProvider.FormatSupport!

Returns the level of support that this provider has for a given FormatConfig.

AudioOutputProvider.OutputConfig!

Returns the OutputConfig for the given format.

Unit

Releases resources held by the provider.

Unit

Removes a Listener.

Unit
setClock(clock: Clock!)

Sets the Clock to use in the provider.

Inherited Constants

From androidx.media3.exoplayer.audio.AudioOutputProvider
const Int

The provider supports the format directly, without the need for internal transcoding.

const Int

The provider supports the format, but needs to transcode it internally to do so.

const Int

The provider does not support the format.

Public constructors

ForwardingAudioOutputProvider

ForwardingAudioOutputProvider(audioOutputProvider: AudioOutputProvider!)

Creates the forwarding AudioOutputProvider.

Parameters
audioOutputProvider: AudioOutputProvider!

The wrapped AudioOutputProvider.

Public functions

addListener

fun addListener(listener: AudioOutputProvider.Listener!): Unit

Adds a Listener.

Parameters
listener: AudioOutputProvider.Listener!

The listener to add.

getFormatSupport

fun getFormatSupport(formatConfig: AudioOutputProvider.FormatConfig!): AudioOutputProvider.FormatSupport!

Returns the level of support that this provider has for a given FormatConfig.

Parameters
formatConfig: AudioOutputProvider.FormatConfig!

The FormatConfig.

Returns
AudioOutputProvider.FormatSupport!

The FormatSupport for this config.

release

fun release(): Unit

Releases resources held by the provider.

removeListener

fun removeListener(listener: AudioOutputProvider.Listener!): Unit

Removes a Listener.

Parameters
listener: AudioOutputProvider.Listener!

The listener to remove.

setClock

fun setClock(clock: Clock!): Unit

Sets the Clock to use in the provider.