Stay organized with collections
Save and categorize content based on your preferences.
Annotations
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
Exceptions
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2025-06-04 UTC.
[null,null,["Last updated 2025-06-04 UTC."],[],[],null,["# androidx.media3.common.audio\n============================\n\n*** ** * ** ***\n\n[Kotlin](/reference/kotlin/androidx/media3/common/audio/package-summary \"View this page in Kotlin\") \\|Java\n\nAnnotations\n-----------\n\n|----------------------------------------------------------------------------------------------------------------|-------------------------|\n| [AudioManagerCompat.AudioFocusGain](/reference/androidx/media3/common/audio/AudioManagerCompat.AudioFocusGain) | Audio focus gain types. |\n\nInterfaces\n----------\n\n|--------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AudioProcessor](/reference/androidx/media3/common/audio/AudioProcessor) | Interface for audio processors, which take audio data as input and transform it, potentially modifying its channel count, encoding and/or sample rate. |\n| [AudioProcessorChain](/reference/androidx/media3/common/audio/AudioProcessorChain) | Provides a chain of audio processors, which are used for any user-defined processing and applying playback parameters (if supported). |\n| [DefaultGainProvider.FadeProvider](/reference/androidx/media3/common/audio/DefaultGainProvider.FadeProvider) | Represents a time unit-agnostic fade shape to be applied over an automation. |\n| [GainProcessor.GainProvider](/reference/androidx/media3/common/audio/GainProcessor.GainProvider) | Interface that provides sample-level gain automation to be applied on an audio stream. |\n| [SpeedProvider](/reference/androidx/media3/common/audio/SpeedProvider) | A custom interface that determines the speed for media at specific timestamps. |\n\nClasses\n-------\n\n|------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------|\n| [AudioFocusRequestCompat](/reference/androidx/media3/common/audio/AudioFocusRequestCompat) | Compatibility version of an [AudioFocusRequest](https://developer.android.com/reference/android/media/AudioFocusRequest.html) with fallbacks for older Android versions. |\n| [AudioFocusRequestCompat.Builder](/reference/androidx/media3/common/audio/AudioFocusRequestCompat.Builder) | Builder class for [AudioFocusRequestCompat](/reference/androidx/media3/common/audio/AudioFocusRequestCompat) objects. |\n| [AudioManagerCompat](/reference/androidx/media3/common/audio/AudioManagerCompat) | Compatibility layer for [AudioManager](https://developer.android.com/reference/android/media/AudioManager.html) with fallbacks for older Android versions. |\n| [AudioMixingUtil](/reference/androidx/media3/common/audio/AudioMixingUtil) | Utility for mixing audio buffers. |\n| [AudioProcessingPipeline](/reference/androidx/media3/common/audio/AudioProcessingPipeline) | Handles passing buffers through multiple [AudioProcessor](/reference/androidx/media3/common/audio/AudioProcessor) instances. |\n| [AudioProcessor.AudioFormat](/reference/androidx/media3/common/audio/AudioProcessor.AudioFormat) | PCM audio format that may be handled by an audio processor. |\n| [BaseAudioProcessor](/reference/androidx/media3/common/audio/BaseAudioProcessor) | Base class for audio processors that keep an output buffer and an internal buffer that is reused whenever input is queued. |\n| [ChannelMixingAudioProcessor](/reference/androidx/media3/common/audio/ChannelMixingAudioProcessor) | An [AudioProcessor](/reference/androidx/media3/common/audio/AudioProcessor) that handles mixing and scaling audio channels. |\n| [ChannelMixingMatrix](/reference/androidx/media3/common/audio/ChannelMixingMatrix) | An immutable matrix that describes the mapping of input channels to output channels. |\n| [DefaultGainProvider](/reference/androidx/media3/common/audio/DefaultGainProvider) | Provides gain automation information to be applied on an audio stream. |\n| [DefaultGainProvider.Builder](/reference/androidx/media3/common/audio/DefaultGainProvider.Builder) | A builder for [DefaultGainProvider](/reference/androidx/media3/common/audio/DefaultGainProvider) instances. |\n| [GainProcessor](/reference/androidx/media3/common/audio/GainProcessor) | Applies [gain automation](/reference/androidx/media3/common/audio/GainProcessor.GainProvider) over an audio stream. |\n| [SonicAudioProcessor](/reference/androidx/media3/common/audio/SonicAudioProcessor) | An [AudioProcessor](/reference/androidx/media3/common/audio/AudioProcessor) that uses the Sonic library to modify audio speed/pitch/sample rate. |\n| [SpeedChangingAudioProcessor](/reference/androidx/media3/common/audio/SpeedChangingAudioProcessor) | An [AudioProcessor](/reference/androidx/media3/common/audio/AudioProcessor) that changes the speed of audio samples depending on their timestamp. |\n| [ToInt16PcmAudioProcessor](/reference/androidx/media3/common/audio/ToInt16PcmAudioProcessor) | An [AudioProcessor](/reference/androidx/media3/common/audio/AudioProcessor) that converts different PCM audio encodings to 16-bit integer PCM. |\n\nExceptions\n----------\n\n|--------------------------------------------------------------------------------------------------------------------------------------|---------------------------------------------------------------------------------------------------------------------------------------|\n| [AudioProcessor.UnhandledAudioFormatException](/reference/androidx/media3/common/audio/AudioProcessor.UnhandledAudioFormatException) | Exception thrown when the given [AudioFormat](/reference/androidx/media3/common/audio/AudioProcessor.AudioFormat) can not be handled. |"]]