androidx.media3.exoplayer.audio


Annotations

AudioOutputProvider.SupportLevel

The level of support the provider has for a format.

AudioSink.OffloadMode

Audio offload mode configuration.

AudioSink.SinkFormatSupport

The level of support the sink provides for a format.

DefaultAudioSink.OutputMode

Output mode of the audio sink.

Interfaces

AudioCapabilitiesReceiver.Listener

Listener notified when audio capabilities change.

AudioOutput

An interface to wrap an object that can play audio, like an AudioTrack.

AudioOutput.Listener

Listener for AudioOutput events.

AudioOutputProvider

A provider for AudioOutput instances and for querying their support.

AudioOutputProvider.Listener

Listener for AudioOutputProvider events.

AudioRendererEventListener

Listener of audio Renderer events.

AudioSink

A sink that consumes audio data.

AudioSink.Listener

Listener for audio sink events.

DefaultAudioSink.AudioOffloadSupportProvider

Provides the AudioOffloadSupport to convey the level of offload support the sink can provide.

DefaultAudioSink.AudioProcessorChain

This interface is deprecated.

Use androidx.media3.common.audio.AudioProcessorChain.

DefaultAudioSink.AudioTrackBufferSizeProvider

Provides the buffer size to use when creating an AudioTrack.

DefaultAudioSink.AudioTrackProvider

This interface is deprecated.

Use AudioTrackAudioOutputProvider instead.

TeeAudioProcessor.AudioBufferSink

A sink for audio buffers handled by the audio processor.

WaveformAudioBufferSink.Listener

Listener for the audio waveform generation.

Classes

AudioCapabilities

Represents the set of audio formats that a device is capable of playing.

AudioCapabilitiesReceiver

Receives broadcast events indicating changes to the device's audio capabilities, notifying a Listener when audio capability changes occur.

AudioOffloadSupport

Represents the support capabilities for audio offload playback.

AudioOffloadSupport.Builder

A builder to create AudioOffloadSupport instances.

AudioOutputProvider.FormatConfig

Configuration for an audio format and its output preferences.

AudioOutputProvider.FormatConfig.Builder

Builder for FormatConfig instances.

AudioOutputProvider.FormatSupport

Level of support for an audio format by the provider.

AudioOutputProvider.FormatSupport.Builder

A builder to create FormatSupport instances.

AudioOutputProvider.OutputConfig

Configuration for an AudioOutput.

AudioOutputProvider.OutputConfig.Builder

Builder for OutputConfig instances.

AudioRendererEventListener.EventDispatcher

Dispatches events to an AudioRendererEventListener.

AudioSink.AudioTrackConfig

Configuration parameters used for an AudioTrack.

AudioTrackAudioOutputProvider

A default implementation of AudioOutputProvider.

AudioTrackAudioOutputProvider.Builder

A builder to create AudioTrackAudioOutputProvider instances.

ChannelMappingAudioProcessor

An AudioProcessor that applies a mapping from input channels onto specified output channels.

DecoderAudioRenderer

Decodes and renders audio using a Decoder.

DefaultAudioOffloadSupportProvider

Provides the AudioOffloadSupport capabilities for a Format and AudioAttributes.

DefaultAudioSink

Plays audio data.

DefaultAudioSink.Builder

A builder to create DefaultAudioSink instances.

DefaultAudioSink.DefaultAudioProcessorChain

The default audio processor chain, which applies a (possibly empty) chain of user-defined audio processors followed by SilenceSkippingAudioProcessor and SonicAudioProcessor.

DefaultAudioTrackBufferSizeProvider

Provide the buffer size to use when creating an AudioTrack.

DefaultAudioTrackBufferSizeProvider.Builder

A builder to create DefaultAudioTrackBufferSizeProvider instances.

DefaultAudioTrackProvider

This class is deprecated.

Use AudioTrackAudioOutputProvider instead.

ForwardingAudioOutput

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

ForwardingAudioOutputProvider

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

ForwardingAudioSink

An overridable AudioSink implementation forwarding all methods to another sink.

MediaCodecAudioRenderer

Decodes and renders audio using MediaCodec and an AudioSink.

OggOpusAudioPacketizer

A packetizer that encapsulates Opus audio encodings in Ogg packets.

PcmAudioUtil

Utility methods for PCM audio data.

SilenceSkippingAudioProcessor

An AudioProcessor that skips silence in the input stream.

TeeAudioProcessor

Audio processor that outputs its input unmodified and also outputs its input to a given sink.

TeeAudioProcessor.WavFileAudioBufferSink

A sink for audio buffers that writes output audio as .wav files with a given path prefix.

ToFloatPcmAudioProcessor

An AudioProcessor that converts high resolution PCM audio to 32-bit float.

TrimmingAudioProcessor

Audio processor for trimming samples from the start/end of data.

WaveformAudioBufferSink

A sink for audio buffers that produces waveform bars.

WaveformAudioBufferSink.WaveformBar

Aggregates a group of audio samples.

Exceptions

AudioOutput.WriteException

Thrown when a failure occurs writing to the output.

AudioOutputProvider.ConfigurationException

Thrown when a failure occurs configuring the output.

AudioOutputProvider.InitializationException

Thrown when a failure occurs initializing the output.

AudioSink.ConfigurationException

Thrown when a failure occurs configuring the sink.

AudioSink.InitializationException

Thrown when a failure occurs initializing the sink.

AudioSink.UnexpectedDiscontinuityException

Thrown when the sink encounters an unexpected timestamp discontinuity.

AudioSink.WriteException

Thrown when a failure occurs writing to the sink.