androidx.media3.exoplayer.audio


Interfaces

AudioCapabilitiesReceiver.Listener

Listener notified when audio capabilities change.

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.

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.

AudioRendererEventListener.EventDispatcher

Dispatches events to an AudioRendererEventListener.

AudioSink.AudioTrackConfig

Configuration parameters used for an AudioTrack.

BaseAudioProcessor

This class is deprecated.

Use androidx.media3.common.audio.BaseAudioProcessor.

DecoderAudioRenderer

Decodes and renders audio using a Decoder.

DefaultAudioOffloadSupportProvider

Provides the AudioOffloadSupport capabilities for a Format and .

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.

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.

SilenceSkippingAudioProcessor

An AudioProcessor that skips silence in the input stream.

SonicAudioProcessor

This class is deprecated.

Use androidx.media3.common.audio.SonicAudioProcessor.

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.

WaveformAudioBufferSink

A sink for audio buffers that produces waveform bars.

WaveformAudioBufferSink.WaveformBar

Aggregates a group of audio samples.

Exceptions

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.

DefaultAudioSink.InvalidAudioTrackTimestampException

Thrown when the audio track has provided a spurious timestamp, if failOnSpuriousAudioTimestamp is set.

Annotations

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.