Added in [API level 28](https://developer.android.com/guide/topics/manifest/uses-sdk-element#ApiLevels) Summary: [Ctors](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel#pubctors) \| [Methods](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel#inhmethods)

# DynamicsProcessing.Channel

*** ** * ** ***

` public static final class DynamicsProcessing.Channel `   
` extends https://developer.android.com/reference/java/lang/Object ` ` `

|---|---|
| [java.lang.Object](https://developer.android.com/reference/java/lang/Object) ||
| ↳ | android.media.audiofx.DynamicsProcessing.Channel |

<br />

*** ** * ** ***

Class for Channel configuration parameters. It is composed of multiple stages, which can be used/enabled independently. Stages not used or disabled will be bypassed and the sound would be unaffected by them.

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel#Channel(android.media.audiofx.DynamicsProcessing.Channel)(https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel cfg) ` Class constructor for Channel configuration |
| ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel#Channel(float,%20boolean,%20int,%20boolean,%20int,%20boolean,%20int,%20boolean)(float inputGain, boolean preEqInUse, int preEqBandCount, boolean mbcInUse, int mbcBandCount, boolean postEqInUse, int postEqBandCount, boolean limiterInUse) ` Class constructor for Channel configuration. |

| ### Public methods ||
|---|---|
| ` float` | ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel#getInputGain()() ` Gets inputGain value in decibels (dB). |
| ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Limiter` | ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel#getLimiter()() ` Gets Limiter configuration stage |
| ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Mbc` | ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel#getMbc()() ` Gets Mbc configuration stage |
| ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.MbcBand` | ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel#getMbcBand(int)(int band) ` Gets MbcBand configuration for Mbc stage, for given band index. |
| ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Eq` | ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel#getPostEq()() ` Gets PostEq configuration stage |
| ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.EqBand` | ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel#getPostEqBand(int)(int band) ` Gets EqBand for PostEq stage for given band index. |
| ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Eq` | ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel#getPreEq()() ` Gets PreEq configuration stage |
| ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.EqBand` | ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel#getPreEqBand(int)(int band) ` Gets EqBand for PreEq stage for given band index. |
| ` void` | ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel#setInputGain(float)(float inputGain) ` Sets inputGain value in decibels (dB). |
| ` void` | ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel#setLimiter(android.media.audiofx.DynamicsProcessing.Limiter)(https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Limiter limiter) ` Sets Limiter configuration stage. |
| ` void` | ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel#setMbc(android.media.audiofx.DynamicsProcessing.Mbc)(https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Mbc mbc) ` Sets Mbc configuration stage. |
| ` void` | ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel#setMbcBand(int,%20android.media.audiofx.DynamicsProcessing.MbcBand)(int band, https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.MbcBand mbcBand) ` Sets MbcBand for Mbc stage for given band index |
| ` void` | ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel#setPostEq(android.media.audiofx.DynamicsProcessing.Eq)(https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Eq postEq) ` Sets PostEq configuration stage. |
| ` void` | ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel#setPostEqBand(int,%20android.media.audiofx.DynamicsProcessing.EqBand)(int band, https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.EqBand postEqBand) ` Sets EqBand for PostEq stage for given band index |
| ` void` | ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel#setPreEq(android.media.audiofx.DynamicsProcessing.Eq)(https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Eq preEq) ` Sets PreEq configuration stage. |
| ` void` | ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel#setPreEqBand(int,%20android.media.audiofx.DynamicsProcessing.EqBand)(int band, https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.EqBand preEqBand) ` Sets EqBand for PreEq stage for given band index |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Channel#toString()() ` Returns a string representation of the object. |

### Inherited methods

From class ` https://developer.android.com/reference/java/lang/Object ` ` https://developer.android.com/reference/java/lang/Object` ` https://developer.android.com/reference/java/lang/Object#clone()() `

Creates and returns a copy of this object.
` boolean` ` https://developer.android.com/reference/java/lang/Object#equals(java.lang.Object)(https://developer.android.com/reference/java/lang/Object obj) `

Indicates whether some other object is "equal to" this one.
` void` ` https://developer.android.com/reference/java/lang/Object#finalize()() `

Called by the garbage collector on an object when garbage collection determines that there are no more references to the object.
` final https://developer.android.com/reference/java/lang/Class<?>` ` https://developer.android.com/reference/java/lang/Object#getClass()() `

Returns the runtime class of this `Object`.
` int` ` https://developer.android.com/reference/java/lang/Object#hashCode()() `

Returns a hash code value for the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#notify()() `

Wakes up a single thread that is waiting on this object's monitor.
` final void` ` https://developer.android.com/reference/java/lang/Object#notifyAll()() `

Wakes up all threads that are waiting on this object's monitor.
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/java/lang/Object#toString()() `

Returns a string representation of the object.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long,%20int)(long timeoutMillis, int nanos) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait(long)(long timeoutMillis) `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*, or until a certain amount of real time has elapsed.
` final void` ` https://developer.android.com/reference/java/lang/Object#wait()() `

Causes the current thread to wait until it is awakened, typically by being *notified* or *interrupted*.

## Public constructors

### Channel

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

```
public Channel (DynamicsProcessing.Channel cfg)
```

Class constructor for Channel configuration

<br />

| Parameters ||
|---|---|
| `cfg` | `DynamicsProcessing.Channel`: copy constructor <br /> |

### Channel

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

```
public Channel (float inputGain, 
                boolean preEqInUse, 
                int preEqBandCount, 
                boolean mbcInUse, 
                int mbcBandCount, 
                boolean postEqInUse, 
                int postEqBandCount, 
                boolean limiterInUse)
```

Class constructor for Channel configuration.

<br />

| Parameters ||
|---|---|
| `inputGain` | `float`: value in decibels (dB) of level change applied to the audio before processing. A value of 0 dB means no change. <br /> |
| `preEqInUse` | `boolean`: true if PreEq stage will be used, false otherwise. This can't be changed later. <br /> |
| `preEqBandCount` | `int`: number of bands for PreEq stage. This can't be changed later. <br /> |
| `mbcInUse` | `boolean`: true if Mbc stage will be used, false otherwise. This can't be changed later. <br /> |
| `mbcBandCount` | `int`: number of bands for Mbc stage. This can't be changed later. <br /> |
| `postEqInUse` | `boolean`: true if PostEq stage will be used, false otherwise. This can't be changed later. <br /> |
| `postEqBandCount` | `int`: number of bands for PostEq stage. This can't be changed later. <br /> |
| `limiterInUse` | `boolean`: true if Limiter stage will be used, false otherwise. This can't be changed later. <br /> |

## Public methods

### getInputGain

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

```
public float getInputGain ()
```

Gets inputGain value in decibels (dB). 0 dB means no change;

<br />

| Returns ||
|---|---|
| `float` | gain value in decibels (dB) <br /> |

### getLimiter

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

```
public DynamicsProcessing.Limiter getLimiter ()
```

Gets Limiter configuration stage

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Limiter` | Limiter configuration stage <br /> |

### getMbc

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

```
public DynamicsProcessing.Mbc getMbc ()
```

Gets Mbc configuration stage

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Mbc` | Mbc configuration stage <br /> |

### getMbcBand

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

```
public DynamicsProcessing.MbcBand getMbcBand (int band)
```

Gets MbcBand configuration for Mbc stage, for given band index.

<br />

| Parameters ||
|---|---|
| `band` | `int`: index of band of interest from Mbc stage <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.MbcBand` | MbcBand configuration <br /> |

### getPostEq

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

```
public DynamicsProcessing.Eq getPostEq ()
```

Gets PostEq configuration stage

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Eq` | PostEq configuration stage <br /> |

### getPostEqBand

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

```
public DynamicsProcessing.EqBand getPostEqBand (int band)
```

Gets EqBand for PostEq stage for given band index.

<br />

| Parameters ||
|---|---|
| `band` | `int`: index of band of interest from PostEq stage <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.EqBand` | EqBand configuration <br /> |

### getPreEq

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

```
public DynamicsProcessing.Eq getPreEq ()
```

Gets PreEq configuration stage

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Eq` | PreEq configuration stage <br /> |

### getPreEqBand

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

```
public DynamicsProcessing.EqBand getPreEqBand (int band)
```

Gets EqBand for PreEq stage for given band index.

<br />

| Parameters ||
|---|---|
| `band` | `int`: index of band of interest from PreEq stage <br /> |

| Returns ||
|---|---|
| `https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.EqBand` | EqBand configuration <br /> |

### setInputGain

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

```
public void setInputGain (float inputGain)
```

Sets inputGain value in decibels (dB). 0 dB means no change;

<br />

| Parameters ||
|---|---|
| `inputGain` | `float`: desired gain value in decibels (dB) <br /> |

### setLimiter

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

```
public void setLimiter (DynamicsProcessing.Limiter limiter)
```

Sets Limiter configuration stage.

<br />

| Parameters ||
|---|---|
| `limiter` | `DynamicsProcessing.Limiter`: configuration stage. <br /> |

### setMbc

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

```
public void setMbc (DynamicsProcessing.Mbc mbc)
```

Sets Mbc configuration stage. New Mbc stage must have the same number of bands than original Mbc stage.

<br />

### setMbcBand

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

```
public void setMbcBand (int band, 
                DynamicsProcessing.MbcBand mbcBand)
```

Sets MbcBand for Mbc stage for given band index

<br />

| Parameters ||
|---|---|
| `band` | `int`: index of band of interest from Mbc Stage <br /> |
| `mbcBand` | `DynamicsProcessing.MbcBand`: configuration to be set <br /> |

### setPostEq

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

```
public void setPostEq (DynamicsProcessing.Eq postEq)
```

Sets PostEq configuration stage. New PostEq stage must have the same number of bands than original PostEq stage.

<br />

| Parameters ||
|---|---|
| `postEq` | `DynamicsProcessing.Eq`: configuration <br /> |

### setPostEqBand

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

```
public void setPostEqBand (int band, 
                DynamicsProcessing.EqBand postEqBand)
```

Sets EqBand for PostEq stage for given band index

<br />

| Parameters ||
|---|---|
| `band` | `int`: index of band of interest from PostEq stage <br /> |
| `postEqBand` | `DynamicsProcessing.EqBand`: configuration to be set. <br /> |

### setPreEq

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

```
public void setPreEq (DynamicsProcessing.Eq preEq)
```

Sets PreEq configuration stage. New PreEq stage must have the same number of bands than original PreEq stage.

<br />

| Parameters ||
|---|---|
| `preEq` | `DynamicsProcessing.Eq`: configuration <br /> |

### setPreEqBand

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

```
public void setPreEqBand (int band, 
                DynamicsProcessing.EqBand preEqBand)
```

Sets EqBand for PreEq stage for given band index

<br />

| Parameters ||
|---|---|
| `band` | `int`: index of band of interest from PreEq stage <br /> |
| `preEqBand` | `DynamicsProcessing.EqBand`: configuration to be set. <br /> |

### toString

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

```
public String toString ()
```

Returns a string representation of the object.

<br />

| Returns ||
|---|---|
| `https://developer.android.com/reference/java/lang/String` | a string representation of the object. <br /> |