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).

SpeedProvider

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

Classes

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.

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.