# DynamicsProcessing.MbcBand

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

# MbcBand

*** ** * ** ***

Kotlin\|[Java](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.MbcBand "View this page in Java")  

```
class MbcBand : DynamicsProcessing.BandBase
```

|---|---|------------------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                          |||
| ↳ | [android.media.audiofx.DynamicsProcessing.BandBase](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.BandBase)   ||
|   | ↳ | [android.media.audiofx.DynamicsProcessing.MbcBand](https://developer.android.com/reference/kotlin/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.

## Summary

|                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             Public constructors                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                             ||
|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [MbcBand](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#MbcBand(android.media.audiofx.DynamicsProcessing.MbcBand))`(`cfg:` `[DynamicsProcessing.MbcBand](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#)!`)` Class constructor for MbcBand                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           |
| [MbcBand](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#MbcBand(kotlin.Boolean,%20kotlin.Float,%20kotlin.Float,%20kotlin.Float,%20kotlin.Float,%20kotlin.Float,%20kotlin.Float,%20kotlin.Float,%20kotlin.Float,%20kotlin.Float,%20kotlin.Float))`(`enabled:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`, `cutoffFrequency:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`, `attackTime:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`, `releaseTime:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`, `ratio:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`, `threshold:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`, `kneeWidth:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`, `noiseGateThreshold:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`, `expanderRatio:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`, `preGain:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`, `postGain:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`)` Class constructor for MbcBand |

|                                                                                                                                                                                                                     Public methods                                                                                                                                                                                                                     ||
|----------------------------------------------------------------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)   | [getAttackTime](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#getAttackTime())`()` gets attack time for compressor in milliseconds (ms)                                                                                                                                                                            |
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)   | [getExpanderRatio](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#getExpanderRatio())`()` gets Expander ratio (1:N) for signals below the Noise Gate Threshold.                                                                                                                                                     |
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)   | [getKneeWidth](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#getKneeWidth())`()` get Knee Width in decibels (dB) around compressor threshold point.                                                                                                                                                                |
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)   | [getNoiseGateThreshold](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#getNoiseGateThreshold())`()` gets the noise gate threshold in decibels (dB) from 0 dB Full Scale (dBFS).                                                                                                                                     |
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)   | [getPostGain](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#getPostGain())`()` gets the gain applied to the signal AFTER compression.                                                                                                                                                                              |
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)   | [getPreGain](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#getPreGain())`()` gets the gain applied to the signal BEFORE the compression.                                                                                                                                                                           |
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)   | [getRatio](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#getRatio())`()` gets the compressor ratio (N:1)                                                                                                                                                                                                           |
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)   | [getReleaseTime](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#getReleaseTime())`()` gets release time for compressor in milliseconds (ms)                                                                                                                                                                         |
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)   | [getThreshold](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#getThreshold())`()` gets the compressor threshold measured in decibels (dB) from 0 dB Full Scale (dBFS).                                                                                                                                              |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)     | [setAttackTime](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#setAttackTime(kotlin.Float))`(`attackTime:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`)` sets attack time for compressor in milliseconds (ms)                                                                  |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)     | [setExpanderRatio](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#setExpanderRatio(kotlin.Float))`(`expanderRatio:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`)` sets Expander ratio (1:N) for signals below the Noise Gate Threshold.                                        |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)     | [setKneeWidth](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#setKneeWidth(kotlin.Float))`(`kneeWidth:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`)` sets knee width in decibels (dB).                                                                                        |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)     | [setNoiseGateThreshold](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#setNoiseGateThreshold(kotlin.Float))`(`noiseGateThreshold:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`)` sets noise gate threshod in decibels (dB).                                                    |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)     | [setPostGain](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#setPostGain(kotlin.Float))`(`postGain:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`)` sets the gain to be applied to the siganl AFTER the compression.                                                            |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)     | [setPreGain](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#setPreGain(kotlin.Float))`(`preGain:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`)` sets the gain to be applied to the signal BEFORE the compression, measured in decibels (dB), where 0 dB means no level change. |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)     | [setRatio](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#setRatio(kotlin.Float))`(`ratio:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`)` sets compressor ratio (N:1)                                                                                                          |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)     | [setReleaseTime](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#setReleaseTime(kotlin.Float))`(`releaseTime:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`)` sets release time for compressor in milliseconds (ms)                                                              |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)     | [setThreshold](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#setThreshold(kotlin.Float))`(`threshold:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`)` sets the compressor threshold measured in decibels (dB) from 0 dB Full Scale (dBFS).                                     |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [toString](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#toString())`()` <br />                                                                                                                                                                                                                                    |

| Inherited functions ||
|---|---|
| From class[BandBase](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.BandBase) |------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)     | [getCutoffFrequency](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.BandBase#getCutoffFrequency())`()` <br /> gets cutoffFrequency for this band in Hertz (Hz) <br />                                                                                                                                                                                                                                                                                                                                                                                       | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isEnabled](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.BandBase#isEnabled())`()` <br /> returns enabled state of the band <br />                                                                                                                                                                                                                                                                                                                                                                                                                        | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)       | [setCutoffFrequency](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.BandBase#setCutoffFrequency(kotlin.Float))`(`frequency:` `[Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html)`)` <br /> sets topmost frequency number (in Hz) this band will process. The effective bandwidth for the band is then computed using this and the previous band topmost frequency (or 0 Hz for band number 0). Frequencies are expected to increase with band number, thus band 0 cutoffFrequency \<= band 1 cutoffFrequency, and so on. <br /> | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)       | [setEnabled](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.BandBase#setEnabled(kotlin.Boolean))`(`enabled:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` <br /> sets enabled state of the band <br />                                                                                                                                                                                                                                                                                                            | ||

## Public constructors

### MbcBand

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

```
MbcBand(cfg: DynamicsProcessing.MbcBand!)
```

Class constructor for MbcBand

|                                                                       Parameters                                                                        ||
|-------|--------------------------------------------------------------------------------------------------------------------------------------------------|
| `cfg` | [DynamicsProcessing.MbcBand](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#)!:copy constructor |

### MbcBand

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

```
MbcBand(
    enabled: Boolean, 
    cutoffFrequency: Float, 
    attackTime: Float, 
    releaseTime: Float, 
    ratio: Float, 
    threshold: Float, 
    kneeWidth: Float, 
    noiseGateThreshold: Float, 
    expanderRatio: Float, 
    preGain: Float, 
    postGain: Float)
```

Class constructor for MbcBand

|                                                                                                                                                                                                          Parameters                                                                                                                                                                                                           ||
|----------------------|---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `enabled`            | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html):true if this band is currently used to process sound. When false, the band is effectively muted and sound set to zero.                                                                                                                                                                                               |
| `cutoffFrequency`    | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html):topmost frequency number (in Hz) this band will process. The effective bandwidth for the band is then computed using this and the previous band topmost frequency (or 0 Hz for band number 0). Frequencies are expected to increase with band number, thus band 0 cutoffFrequency \<= band 1 cutoffFrequency, and so on. |
| `attackTime`         | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html):Attack Time for compressor in milliseconds (ms)                                                                                                                                                                                                                                                                          |
| `releaseTime`        | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html):Release Time for compressor in milliseconds (ms)                                                                                                                                                                                                                                                                         |
| `ratio`              | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html):Compressor ratio (N:1) (input:output)                                                                                                                                                                                                                                                                                    |
| `threshold`          | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html):Compressor threshold measured in decibels (dB) from 0 dB Full Scale (dBFS).                                                                                                                                                                                                                                              |
| `kneeWidth`          | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html):Width in decibels (dB) around compressor threshold point.                                                                                                                                                                                                                                                                |
| `noiseGateThreshold` | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html):Noise gate threshold in decibels (dB) from 0 dB Full Scale (dBFS).                                                                                                                                                                                                                                                       |
| `expanderRatio`      | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html):Expander ratio (1:N) (input:output) for signals below the Noise Gate Threshold.                                                                                                                                                                                                                                          |
| `preGain`            | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html):Gain applied to the signal BEFORE the compression.                                                                                                                                                                                                                                                                       |
| `postGain`           | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html):Gain applied to the signal AFTER compression.                                                                                                                                                                                                                                                                            |

## Public methods

### getAttackTime

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

```
fun getAttackTime(): Float
```

gets attack time for compressor in milliseconds (ms)

|                                                             Return                                                              ||
|--------------------------------------------------------------------------------|-------------------------------------------------|
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) | attack time for compressor in milliseconds (ms) |

### getExpanderRatio

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

```
fun getExpanderRatio(): Float
```

gets Expander ratio (1:N) for signals below the Noise Gate Threshold.

|                                                Return                                                ||
|--------------------------------------------------------------------------------|----------------------|
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) | Expander ratio (1:N) |

### getKneeWidth

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

```
fun getKneeWidth(): Float
```

get Knee Width in decibels (dB) around compressor threshold point. Widths are always positive, with higher values representing a wider area of transition from the linear zone to the compression zone. A knee of 0 dB means a more abrupt transition.

|                                                   Return                                                    ||
|--------------------------------------------------------------------------------|-----------------------------|
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) | Knee Width in decibels (dB) |

### getNoiseGateThreshold

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

```
fun getNoiseGateThreshold(): Float
```

gets the noise gate threshold in decibels (dB) from 0 dB Full Scale (dBFS). Noise gate thresholds are negative. Signals below this level will be expanded according the expanderRatio parameter. A Noise Gate Threshold of -75 dB means very quiet signals might be effectively removed from the signal.

|                                                        Return                                                         ||
|--------------------------------------------------------------------------------|---------------------------------------|
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) | Noise Gate Threshold in decibels (dB) |

### getPostGain

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

```
fun getPostGain(): Float
```

gets the gain applied to the signal AFTER compression. Measured in decibels (dB) where 0 dB means no level change

|                                                     Return                                                      ||
|--------------------------------------------------------------------------------|---------------------------------|
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) | postGain value in decibels (dB) |

### getPreGain

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

```
fun getPreGain(): Float
```

gets the gain applied to the signal BEFORE the compression. Measured in decibels (dB) where 0 dB means no level change.

|                                                     Return                                                     ||
|--------------------------------------------------------------------------------|--------------------------------|
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) | preGain value in decibels (dB) |

### getRatio

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

```
fun getRatio(): Float
```

gets the compressor ratio (N:1)

|                                                 Return                                                 ||
|--------------------------------------------------------------------------------|------------------------|
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) | compressor ratio (N:1) |

### getReleaseTime

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

```
fun getReleaseTime(): Float
```

gets release time for compressor in milliseconds (ms)

|                                                              Return                                                              ||
|--------------------------------------------------------------------------------|--------------------------------------------------|
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) | release time for compressor in milliseconds (ms) |

### getThreshold

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

```
fun getThreshold(): Float
```

gets the compressor threshold measured in decibels (dB) from 0 dB Full Scale (dBFS). Thresholds are negative. A threshold of 0 dB means no compression will take place.

|                                                        Return                                                         ||
|--------------------------------------------------------------------------------|---------------------------------------|
| [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html) | compressor threshold in decibels (dB) |

### setAttackTime

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

```
fun setAttackTime(attackTime: Float): Unit
```

sets attack time for compressor in milliseconds (ms)

|                                                                Parameters                                                                ||
|--------------|----------------------------------------------------------------------------------------------------------------------------|
| `attackTime` | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html):desired for compressor in milliseconds (ms) |

### setExpanderRatio

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

```
fun setExpanderRatio(expanderRatio: Float): Unit
```

sets Expander ratio (1:N) for signals below the Noise Gate Threshold.

|                                                          Parameters                                                          ||
|-----------------|-------------------------------------------------------------------------------------------------------------|
| `expanderRatio` | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html):desired expander ratio (1:N) |

### setKneeWidth

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

```
fun setKneeWidth(kneeWidth: Float): Unit
```

sets knee width in decibels (dB). See[android.media.audiofx.DynamicsProcessing.MbcBand#getKneeWidth](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#getKneeWidth())for more information.

|                                                      Parameters                                                      ||
|-------------|---------------------------------------------------------------------------------------------------------|
| `kneeWidth` | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html):desired in decibels (dB) |

### setNoiseGateThreshold

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

```
fun setNoiseGateThreshold(noiseGateThreshold: Float): Unit
```

sets noise gate threshod in decibels (dB). See[android.media.audiofx.DynamicsProcessing.MbcBand#getNoiseGateThreshold](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand#getNoiseGateThreshold())for more information.

|                                                          Parameters                                                           ||
|----------------------|---------------------------------------------------------------------------------------------------------|
| `noiseGateThreshold` | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html):desired in decibels (dB) |

### setPostGain

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

```
fun setPostGain(postGain: Float): Unit
```

sets the gain to be applied to the siganl AFTER the compression. Measured in decibels (dB), where 0 dB means no level change.

|                                                        Parameters                                                         ||
|------------|---------------------------------------------------------------------------------------------------------------|
| `postGain` | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html):desired value in decibels (dB) |

### setPreGain

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

```
fun setPreGain(preGain: Float): Unit
```

sets the gain to be applied to the signal BEFORE the compression, measured in decibels (dB), where 0 dB means no level change.

|                                                     Parameters                                                     ||
|-----------|---------------------------------------------------------------------------------------------------------|
| `preGain` | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html):desired in decibels (dB) |

### setRatio

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

```
fun setRatio(ratio: Float): Unit
```

sets compressor ratio (N:1)

|                                                        Parameters                                                        ||
|---------|-----------------------------------------------------------------------------------------------------------------|
| `ratio` | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html):desired for the compressor (N:1) |

### setReleaseTime

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

```
fun setReleaseTime(releaseTime: Float): Unit
```

sets release time for compressor in milliseconds (ms)

|                                                                Parameters                                                                 ||
|---------------|----------------------------------------------------------------------------------------------------------------------------|
| `releaseTime` | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html):desired for compressor in milliseconds (ms) |

### setThreshold

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

```
fun setThreshold(threshold: Float): Unit
```

sets the compressor threshold measured in decibels (dB) from 0 dB Full Scale (dBFS). Thresholds are negative. A threshold of 0 dB means no compression will take place.

|                                                             Parameters                                                             ||
|-------------|-----------------------------------------------------------------------------------------------------------------------|
| `threshold` | [Float](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-float/index.html):desired for compressor in decibels(dB) |

### toString

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

```
fun toString(): String
```

|                                                          Return                                                          ||
|----------------------------------------------------------------------------------|----------------------------------------|
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | a string representation of the object. |