# DynamicsProcessing.Mbc

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

# Mbc

*** ** * ** ***

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

```
class Mbc : DynamicsProcessing.BandStage
```

|---|---|---|----------------------------------------------------------------------------------------------------------------------------------------------|
| [kotlin.Any](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-any/index.html)                                                                     ||||
| ↳ | [android.media.audiofx.DynamicsProcessing.Stage](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.Stage)    |||
|   | ↳ | [android.media.audiofx.DynamicsProcessing.BandStage](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.BandStage) ||
|   |   | ↳ | [android.media.audiofx.DynamicsProcessing.Mbc](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.Mbc#) |

Class for Multi-Band Compressor (MBC) stage

## Summary

|                                                                                                                                                                                                                                           Public constructors                                                                                                                                                                                                                                            ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [Mbc](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.Mbc#Mbc(android.media.audiofx.DynamicsProcessing.Mbc))`(`cfg:` `[DynamicsProcessing.Mbc](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.Mbc#)!`)` Class constructor for MBC stage                                                                                                                                                                              |
| [Mbc](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.Mbc#Mbc(kotlin.Boolean,%20kotlin.Boolean,%20kotlin.Int))`(`inUse:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`, `enabled:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`, `bandCount:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Constructor for Multi-Band Compressor (MBC) stage |

|                                                                                                                                                                                                                                                                                        Public methods                                                                                                                                                                                                                                                                                        ||
|--------------------------------------------------------------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| [DynamicsProcessing.MbcBand](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand)! | [getBand](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.Mbc#getBand(kotlin.Int))`(`band:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`)` Gets MbcBand object for band of interest.                                                                                                                                                                                                 |
| [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)                                                   | [setBand](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.Mbc#setBand(kotlin.Int,%20android.media.audiofx.DynamicsProcessing.MbcBand))`(`band:` `[Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html)`, `bandCfg:` `[DynamicsProcessing.MbcBand](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand)!`)` Sets MbcBand object for given band index |
| [String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html)                                               | [toString](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.Mbc#toString())`()` <br />                                                                                                                                                                                                                                                                                                                                |

| Inherited functions ||
|---|---|
| From class[BandStage](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.BandStage) |----------------------------------------------------------------------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | [getBandCount](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.BandStage#getBandCount())`()` <br /> gets number of bands held in this stage <br /> | ||
| From class[Stage](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.Stage) |------------------------------------------------------------------------------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------| | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isEnabled](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.Stage#isEnabled())`()` <br /> returns enabled state of the stage <br />                                                                                                             | | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html) | [isInUse](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.Stage#isInUse())`()` <br /> returns inUse state of the stage. <br />                                                                                                                  | | [Unit](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-unit/index.html)       | [setEnabled](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.Stage#setEnabled(kotlin.Boolean))`(`enabled:` `[Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html)`)` <br /> sets enabled state of the stage <br /> | ||

## Public constructors

### Mbc

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

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

Class constructor for MBC stage

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

### Mbc

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

```
Mbc(
    inUse: Boolean, 
    enabled: Boolean, 
    bandCount: Int)
```

Constructor for Multi-Band Compressor (MBC) stage

|                                                                                     Parameters                                                                                     ||
|-------------|-----------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `inUse`     | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html):true if MBC stage will be used, false otherwise.                                   |
| `enabled`   | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html):true if MBC stage is enabled/disabled. This can be changed while effect is running |
| `bandCount` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):number of bands for this MBC stage. Can't be changed while effect is running               |

## Public methods

### getBand

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

```
fun getBand(band: Int): DynamicsProcessing.MbcBand!
```

Gets MbcBand object for band of interest.

|                                                  Parameters                                                  ||
|--------|------------------------------------------------------------------------------------------------------|
| `band` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):index of band of interest |

|                                                                     Return                                                                     ||
|--------------------------------------------------------------------------------------------------------------------------------|----------------|
| [DynamicsProcessing.MbcBand](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand)! | MbcBand Object |

### setBand

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

```
fun setBand(
    band: Int, 
    bandCfg: DynamicsProcessing.MbcBand!
): Unit
```

Sets MbcBand object for given band index

|                                                                        Parameters                                                                         ||
|-----------|------------------------------------------------------------------------------------------------------------------------------------------------|
| `band`    | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):index of band to be modified                                        |
| `bandCfg` | [DynamicsProcessing.MbcBand](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.MbcBand)!:MbcBand object. |

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