androidx.media3.common.audio


Interfaces

AudioProcessor

Interface for audio processors, which take audio data as input and transform it, potentially modifying its channel count, encoding and/or sample rate.

AudioProcessorChain

Provides a chain of audio processors, which are used for any user-defined processing and applying playback parameters (if supported).

DefaultGainProvider.FadeProvider

Represents a time unit-agnostic fade shape to be applied over an automation.

GainProcessor.GainProvider

Interface that provides sample-level gain automation to be applied on an audio stream.

SpeedProvider

A custom interface that determines the speed for media at specific timestamps.

Classes

AudioFocusRequestCompat

Compatibility version of an AudioFocusRequest with fallbacks for older Android versions.

AudioFocusRequestCompat.Builder

Builder class for AudioFocusRequestCompat objects.

AudioManagerCompat

Compatibility layer for AudioManager with fallbacks for older Android versions.

AudioMixingUtil

Utility for mixing audio buffers.

AudioProcessingPipeline

Handles passing buffers through multiple AudioProcessor instances.

AudioProcessor.AudioFormat

PCM audio format that may be handled by an audio processor.

BaseAudioProcessor

Base class for audio processors that keep an output buffer and an internal buffer that is reused whenever input is queued.

ChannelMixingAudioProcessor

An AudioProcessor that handles mixing and scaling audio channels.

ChannelMixingMatrix

An immutable matrix that describes the mapping of input channels to output channels.

DefaultGainProvider

Provides gain automation information to be applied on an audio stream.

DefaultGainProvider.Builder

A builder for DefaultGainProvider instances.

GainProcessor

Applies gain automation over an audio stream.

SonicAudioProcessor

An AudioProcessor that uses the Sonic library to modify audio speed/pitch/sample rate.

SpeedChangingAudioProcessor

An AudioProcessor that changes the speed of audio samples depending on their timestamp.

ToInt16PcmAudioProcessor

An AudioProcessor that converts different PCM audio encodings to 16-bit integer PCM.

Exceptions

AudioProcessor.UnhandledAudioFormatException

Exception thrown when the given AudioFormat can not be handled.

Annotations

AudioManagerCompat.AudioFocusGain

Audio focus gain types.