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.EqBand#pubctors) \| [Methods](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.EqBand#pubmethods) \| [Inherited Methods](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.EqBand#inhmethods)

# DynamicsProcessing.EqBand

*** ** * ** ***

` public static final class DynamicsProcessing.EqBand `   
` ` ` extends https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.BandBase ` ` `

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

<br />

*** ** * ** ***

Class for Equalizer Bands Equalizer bands have three controllable parameters: enabled/disabled, cutoffFrequency and gain

## Summary

| ### Public constructors ||
|---|---|
| ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.EqBand#EqBand(android.media.audiofx.DynamicsProcessing.EqBand)(https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.EqBand cfg) ` Class constructor for EqBand |
| ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.EqBand#EqBand(boolean,%20float,%20float)(boolean enabled, float cutoffFrequency, float gain) ` Class constructor for EqBand |

| ### Public methods ||
|---|---|
| ` float` | ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.EqBand#getGain()() ` gets current gain of band in decibels (dB) |
| ` void` | ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.EqBand#setGain(float)(float gain) ` sets current gain of band in decibels (dB) |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.EqBand#toString()() ` Returns a string representation of the object. |

### Inherited methods

From class ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.BandBase ` ` float` ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.BandBase#getCutoffFrequency()() `

gets cutoffFrequency for this band in Hertz (Hz)
` boolean` ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.BandBase#isEnabled()() `

returns enabled state of the band
` void` ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.BandBase#setCutoffFrequency(float)(float frequency) `

sets topmost frequency number (in Hz) this band will process.
` void` ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.BandBase#setEnabled(boolean)(boolean enabled) `

sets enabled state of the band
` https://developer.android.com/reference/java/lang/String` ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.BandBase#toString()() `

Returns a string representation of the object.
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

### EqBand

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

```
public EqBand (DynamicsProcessing.EqBand cfg)
```

Class constructor for EqBand

<br />

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

### EqBand

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

```
public EqBand (boolean enabled, 
                float cutoffFrequency, 
                float gain)
```

Class constructor for EqBand

<br />

| Parameters ||
|---|---|
| `enabled` | `boolean`: true if this band is currently used to process sound. When false, the band is effectively muted and sound set to zero. <br /> |
| `cutoffFrequency` | `float`: 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 /> |
| `gain` | `float`: of equalizer band in decibels (dB). A gain of 0 dB means no change in level. <br /> |

## Public methods

### getGain

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

```
public float getGain ()
```

gets current gain of band in decibels (dB)

<br />

| Returns ||
|---|---|
| `float` | current gain of band in decibels (dB) <br /> |

### setGain

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

```
public void setGain (float gain)
```

sets current gain of band in decibels (dB)

<br />

| Parameters ||
|---|---|
| `gain` | `float`: desired in decibels (db) <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 /> |