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

# DynamicsProcessing.Stage

*** ** * ** ***


`
public
static


class
DynamicsProcessing.Stage
`


`

extends https://developer.android.com/reference/java/lang/Object


`

`


`

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

|---|
| Known direct subclasses [DynamicsProcessing.BandStage](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.BandStage), [DynamicsProcessing.Limiter](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Limiter) |---|---| | [DynamicsProcessing.BandStage](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.BandStage) | Base class for stages that hold bands | | [DynamicsProcessing.Limiter](https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Limiter) | Class for Limiter Stage Limiter is a single band compressor at the end of the processing chain, commonly used to protect the signal from overloading and distortion. | |

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

<br />

*** ** * ** ***

base class for the different stages.

## Summary

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

| ### Public methods ||
|---|---|
| ` boolean` | ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Stage#isEnabled()() ` returns enabled state of the stage |
| ` boolean` | ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Stage#isInUse()() ` returns inUse state of the stage. |
| ` void` | ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Stage#setEnabled(boolean)(boolean enabled) ` sets enabled state of the stage |
| ` https://developer.android.com/reference/java/lang/String` | ` https://developer.android.com/reference/android/media/audiofx/DynamicsProcessing.Stage#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

### Stage

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

```
public Stage (boolean inUse, 
                boolean enabled)
```

Class constructor for stage

<br />

| Parameters ||
|---|---|
| `inUse` | `boolean`: 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. <br /> |
| `enabled` | `boolean`: 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. <br /> |

## Public methods

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

<br />

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

### isInUse

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

```
public boolean isInUse ()
```

returns inUse state of the stage.

<br />

| Returns ||
|---|---|
| `boolean` | inUse state of the stage. True if this stage is currently used to process sound. When false, the stage is bypassed and the sound is copied unaltered from input to output. <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 stage

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