# android.media.audiofx

Added in[API level 9](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels)  

# android.media.audiofx

*** ** * ** ***

[Kotlin](https://developer.android.com/reference/kotlin/android/media/audiofx/package-summary "View this page in Kotlin")\|Java
Provides classes that manage audio effects implemented in the media framework.

## Interfaces

|--------------------------------------------------------------------------------------------------------------------------------------------------------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AudioEffect.OnControlStatusChangeListener](https://developer.android.com/reference/android/media/audiofx/AudioEffect.OnControlStatusChangeListener)         | The OnControlStatusChangeListener interface defines a method called by the AudioEffect when control of the effect engine is gained or lost by the application                 |
| [AudioEffect.OnEnableStatusChangeListener](https://developer.android.com/reference/android/media/audiofx/AudioEffect.OnEnableStatusChangeListener)           | The OnEnableStatusChangeListener interface defines a method called by the AudioEffect when the enabled state of the effect engine was changed by the controlling application. |
| [BassBoost.OnParameterChangeListener](https://developer.android.com/reference/android/media/audiofx/BassBoost.OnParameterChangeListener)                     | The OnParameterChangeListener interface defines a method called by the BassBoost when a parameter value has changed.                                                          |
| [EnvironmentalReverb.OnParameterChangeListener](https://developer.android.com/reference/android/media/audiofx/EnvironmentalReverb.OnParameterChangeListener) | The OnParameterChangeListener interface defines a method called by the EnvironmentalReverb when a parameter value has changed.                                                |
| [Equalizer.OnParameterChangeListener](https://developer.android.com/reference/android/media/audiofx/Equalizer.OnParameterChangeListener)                     | The OnParameterChangeListener interface defines a method called by the Equalizer when a parameter value has changed.                                                          |
| [PresetReverb.OnParameterChangeListener](https://developer.android.com/reference/android/media/audiofx/PresetReverb.OnParameterChangeListener)               | The OnParameterChangeListener interface defines a method called by the PresetReverb when a parameter value has changed.                                                       |
| [Virtualizer.OnParameterChangeListener](https://developer.android.com/reference/android/media/audiofx/Virtualizer.OnParameterChangeListener)                 | The OnParameterChangeListener interface defines a method called by the Virtualizer when a parameter value has changed.                                                        |
| [Visualizer.OnDataCaptureListener](https://developer.android.com/reference/android/media/audiofx/Visualizer.OnDataCaptureListener)                           | The OnDataCaptureListener interface defines methods called by the Visualizer to periodically update the audio visualization capture.                                          |

## Classes

|--------------------------------------------------------------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [AcousticEchoCanceler](https://developer.android.com/reference/android/media/audiofx/AcousticEchoCanceler)                           | Acoustic Echo Canceler (AEC).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [AudioEffect](https://developer.android.com/reference/android/media/audiofx/AudioEffect)                                             | AudioEffect is the base class for controlling audio effects provided by the android audio framework.                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [AudioEffect.Descriptor](https://developer.android.com/reference/android/media/audiofx/AudioEffect.Descriptor)                       | The effect descriptor contains information on a particular effect implemented in the audio framework: - type: UUID identifying the effect type.                                                                                                                                                                                                                                                                                                                                                                                              |
| [AutomaticGainControl](https://developer.android.com/reference/android/media/audiofx/AutomaticGainControl)                           | Automatic Gain Control (AGC).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [BassBoost](https://developer.android.com/reference/android/media/audiofx/BassBoost)                                                 | Bass boost is an audio effect to boost or amplify low frequencies of the sound.                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [BassBoost.Settings](https://developer.android.com/reference/android/media/audiofx/BassBoost.Settings)                               | The Settings class regroups all bass boost parameters.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [DynamicsProcessing](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing)                               | DynamicsProcessing is an audio effect for equalizing and changing dynamic range properties of the sound.                                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [DynamicsProcessing.BandBase](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.BandBase)             | Base class for bands                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [DynamicsProcessing.BandStage](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.BandStage)           | Base class for stages that hold bands                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [DynamicsProcessing.Channel](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel)               | Class for Channel configuration parameters.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [DynamicsProcessing.Config](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Config)                 | Class for Config object, used by DynamicsProcessing to configure and update the audio effect.                                                                                                                                                                                                                                                                                                                                                                                                                                                |
| [DynamicsProcessing.Config.Builder](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Config.Builder) |                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                              |
| [DynamicsProcessing.Eq](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Eq)                         | Class for Equalizer stage                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [DynamicsProcessing.EqBand](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.EqBand)                 | Class for Equalizer Bands Equalizer bands have three controllable parameters: enabled/disabled, cutoffFrequency and gain                                                                                                                                                                                                                                                                                                                                                                                                                     |
| [DynamicsProcessing.Limiter](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Limiter)               | Class for Limiter Stage Limiter is a single band compressor at the end of the processing chain, commonly used to protect the signal from overloading and distortion.                                                                                                                                                                                                                                                                                                                                                                         |
| [DynamicsProcessing.Mbc](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Mbc)                       | Class for Multi-Band Compressor (MBC) stage                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [DynamicsProcessing.MbcBand](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.MbcBand)               | Class for Multi-Band compressor bands MBC bands have multiple controllable parameters: enabled/disabled, cutoffFrequency, attackTime, releaseTime, ratio, threshold, kneeWidth, noiseGateThreshold, expanderRatio, preGain and postGain.                                                                                                                                                                                                                                                                                                     |
| [DynamicsProcessing.Stage](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Stage)                   | base class for the different stages.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                         |
| [EnvironmentalReverb](https://developer.android.com/reference/android/media/audiofx/EnvironmentalReverb)                             | A sound generated within a room travels in many directions.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [EnvironmentalReverb.Settings](https://developer.android.com/reference/android/media/audiofx/EnvironmentalReverb.Settings)           | The Settings class regroups all environmental reverb parameters.                                                                                                                                                                                                                                                                                                                                                                                                                                                                             |
| [Equalizer](https://developer.android.com/reference/android/media/audiofx/Equalizer)                                                 | An Equalizer is used to alter the frequency response of a particular music source or of the main output mix.                                                                                                                                                                                                                                                                                                                                                                                                                                 |
| [Equalizer.Settings](https://developer.android.com/reference/android/media/audiofx/Equalizer.Settings)                               | The Settings class regroups all equalizer parameters.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [HapticGenerator](https://developer.android.com/reference/android/media/audiofx/HapticGenerator)                                     | Haptic Generator(HG).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |
| [LoudnessEnhancer](https://developer.android.com/reference/android/media/audiofx/LoudnessEnhancer)                                   | LoudnessEnhancer is an audio effect for increasing audio loudness.                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [NoiseSuppressor](https://developer.android.com/reference/android/media/audiofx/NoiseSuppressor)                                     | Noise Suppressor (NS).                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       |
| [PresetReverb](https://developer.android.com/reference/android/media/audiofx/PresetReverb)                                           | A sound generated within a room travels in many directions.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                  |
| [PresetReverb.Settings](https://developer.android.com/reference/android/media/audiofx/PresetReverb.Settings)                         | The Settings class regroups all preset reverb parameters.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                    |
| [Virtualizer](https://developer.android.com/reference/android/media/audiofx/Virtualizer)                                             | *This class was deprecated in API level 35. use the[Spatializer](https://developer.android.com/reference/android/media/Spatializer)class to query the capabilities of the platform with regards to spatialization, a different name for audio channel virtualization, and the[AudioAttributes.Builder.setSpatializationBehavior(int)](https://developer.android.com/reference/android/media/AudioAttributes.Builder#setSpatializationBehavior(int))to characterize how you want your content to be played when spatialization is supported.* |
| [Virtualizer.Settings](https://developer.android.com/reference/android/media/audiofx/Virtualizer.Settings)                           | The Settings class regroups all virtualizer parameters.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                      |
| [Visualizer](https://developer.android.com/reference/android/media/audiofx/Visualizer)                                               | The Visualizer class enables application to retrieve part of the currently playing audio for visualization purpose.                                                                                                                                                                                                                                                                                                                                                                                                                          |
| [Visualizer.MeasurementPeakRms](https://developer.android.com/reference/android/media/audiofx/Visualizer.MeasurementPeakRms)         | A class to store peak and RMS values.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                        |

-

  ## Interfaces

  - [AudioEffect.OnControlStatusChangeListener](https://developer.android.com/reference/android/media/audiofx/AudioEffect.OnControlStatusChangeListener)
  - [AudioEffect.OnEnableStatusChangeListener](https://developer.android.com/reference/android/media/audiofx/AudioEffect.OnEnableStatusChangeListener)
  - [BassBoost.OnParameterChangeListener](https://developer.android.com/reference/android/media/audiofx/BassBoost.OnParameterChangeListener)
  - [EnvironmentalReverb.OnParameterChangeListener](https://developer.android.com/reference/android/media/audiofx/EnvironmentalReverb.OnParameterChangeListener)
  - [Equalizer.OnParameterChangeListener](https://developer.android.com/reference/android/media/audiofx/Equalizer.OnParameterChangeListener)
  - [PresetReverb.OnParameterChangeListener](https://developer.android.com/reference/android/media/audiofx/PresetReverb.OnParameterChangeListener)
  - [Virtualizer.OnParameterChangeListener](https://developer.android.com/reference/android/media/audiofx/Virtualizer.OnParameterChangeListener)
  - [Visualizer.OnDataCaptureListener](https://developer.android.com/reference/android/media/audiofx/Visualizer.OnDataCaptureListener)
-

  ## Classes

  - [AcousticEchoCanceler](https://developer.android.com/reference/android/media/audiofx/AcousticEchoCanceler)
  - [AudioEffect](https://developer.android.com/reference/android/media/audiofx/AudioEffect)
  - [AudioEffect.Descriptor](https://developer.android.com/reference/android/media/audiofx/AudioEffect.Descriptor)
  - [AutomaticGainControl](https://developer.android.com/reference/android/media/audiofx/AutomaticGainControl)
  - [BassBoost](https://developer.android.com/reference/android/media/audiofx/BassBoost)
  - [BassBoost.Settings](https://developer.android.com/reference/android/media/audiofx/BassBoost.Settings)
  - [DynamicsProcessing](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing)
  - [DynamicsProcessing.BandBase](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.BandBase)
  - [DynamicsProcessing.BandStage](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.BandStage)
  - [DynamicsProcessing.Channel](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel)
  - [DynamicsProcessing.Config](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Config)
  - [DynamicsProcessing.Config.Builder](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Config.Builder)
  - [DynamicsProcessing.Eq](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Eq)
  - [DynamicsProcessing.EqBand](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.EqBand)
  - [DynamicsProcessing.Limiter](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Limiter)
  - [DynamicsProcessing.Mbc](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Mbc)
  - [DynamicsProcessing.MbcBand](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.MbcBand)
  - [DynamicsProcessing.Stage](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Stage)
  - [EnvironmentalReverb](https://developer.android.com/reference/android/media/audiofx/EnvironmentalReverb)
  - [EnvironmentalReverb.Settings](https://developer.android.com/reference/android/media/audiofx/EnvironmentalReverb.Settings)
  - [Equalizer](https://developer.android.com/reference/android/media/audiofx/Equalizer)
  - [Equalizer.Settings](https://developer.android.com/reference/android/media/audiofx/Equalizer.Settings)
  - [HapticGenerator](https://developer.android.com/reference/android/media/audiofx/HapticGenerator)
  - [LoudnessEnhancer](https://developer.android.com/reference/android/media/audiofx/LoudnessEnhancer)
  - [NoiseSuppressor](https://developer.android.com/reference/android/media/audiofx/NoiseSuppressor)
  - [PresetReverb](https://developer.android.com/reference/android/media/audiofx/PresetReverb)
  - [PresetReverb.Settings](https://developer.android.com/reference/android/media/audiofx/PresetReverb.Settings)
  - [Virtualizer](https://developer.android.com/reference/android/media/audiofx/Virtualizer)
  - [Virtualizer.Settings](https://developer.android.com/reference/android/media/audiofx/Virtualizer.Settings)
  - [Visualizer](https://developer.android.com/reference/android/media/audiofx/Visualizer)
  - [Visualizer.MeasurementPeakRms](https://developer.android.com/reference/android/media/audiofx/Visualizer.MeasurementPeakRms)