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

# DynamicsProcessing.BandBase

*** ** * ** ***

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

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

Known direct subclasses [DynamicsProcessing.EqBand](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.EqBand), [DynamicsProcessing.MbcBand](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.MbcBand) [DynamicsProcessing.EqBand](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.EqBand) Class for Equalizer Bands Equalizer bands have three controllable parameters: enabled/disabled, cutoffFrequency and gain [DynamicsProcessing.MbcBand](https://developer.android.com/reference/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.   

*** ** * ** ***

Base class for bands

## Summary

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

| ### Public methods ||
|---|---|
| ` 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. |

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

### BandBase

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

```
public BandBase (boolean enabled, 
                float cutoffFrequency)
```

Class constructor for BandBase

<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 /> |

## Public methods

### getCutoffFrequency

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

```
public float getCutoffFrequency ()
```

gets cutoffFrequency for this band in Hertz (Hz)

<br />

| Returns ||
|---|---|
| `float` | cutoffFrequency for this band in Hertz (Hz) <br /> |

### isEnabled

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

```
public boolean isEnabled ()
```

returns enabled state of the band

<br />

| Returns ||
|---|---|
| `boolean` | true if bands is enabled for processing, false otherwise <br /> |

### setCutoffFrequency

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

```
public void setCutoffFrequency (float frequency)
```

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 />

### setEnabled

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

```
public void setEnabled (boolean enabled)
```

sets enabled state of the band

<br />

| Parameters ||
|---|---|
| `enabled` | `boolean`: true for enabled, false otherwise <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 /> |