# DynamicsProcessing.BandStage

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

# BandStage

*** ** * ** ***

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

```
class BandStage : DynamicsProcessing.Stage
```

|---|---|----------------------------------------------------------------------------------------------------------------------------------------------------------|
| [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#) |

|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| Known Direct Subclasses [DynamicsProcessing.Eq](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.Eq),[DynamicsProcessing.Mbc](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.Mbc) |-----------------------------------------------------------------------------------------------------------------------|---------------------------------------------| | [DynamicsProcessing.Eq](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.Eq)   | Class for Equalizer stage                   | | [DynamicsProcessing.Mbc](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.Mbc) | Class for Multi-Band Compressor (MBC) stage | |

Base class for stages that hold bands

## Summary

|                                                                                                                                                                                                                                           Public constructors                                                                                                                                                                                                                                            ||
|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---|
| [BandStage](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.BandStage#BandStage(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)`)` Class constructor for BandStage |

|                                                                                                                           Public methods                                                                                                                           ||
|--------------------------------------------------------------------------------------|------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| open[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())`()` gets number of bands held in this stage |
| open[String](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-string/index.html) | [toString](https://developer.android.com/reference/kotlin/android/media/audiofx/DynamicsProcessing.BandStage#toString())`()` <br />                                          |

| Inherited functions ||
|---|---|
| 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

### BandStage

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

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

Class constructor for BandStage

|                                                                                                                       Parameters                                                                                                                        ||
|-------------|--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
| `inUse`     | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html):true if this stage is set to be used. False otherwise. Stages that are not set "inUse" at initialization time are not available to be used at any time. |
| `enabled`   | [Boolean](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-boolean/index.html):true if this stage is currently used to process sound. When disabled, the stage is bypassed and the sound is copied unaltered from input to output.     |
| `bandCount` | [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html):number of bands this stage will handle. If stage is not inUse, bandcount is set to 0                                                                            |

## Public methods

### getBandCount

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

```
open fun getBandCount(): Int
```

gets number of bands held in this stage

|                                                     Return                                                     ||
|----------------------------------------------------------------------------|------------------------------------|
| [Int](https://kotlinlang.org/api/latest/jvm/stdlib/kotlin/-int/index.html) | number of bands held in this stage |

### toString

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

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

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