> ## Documentation Index
> Fetch the complete documentation index at: https://devdocs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SHAPE_EQCOMP_COMPRESSOR_MODE

> SHAPE_EQCOMP_COMPRESSOR_MODE

# SHAPE\_EQCOMP\_COMPRESSOR\_MODE

Compressor modes.

## Syntax

```cpp theme={null}
enum SHAPE_EQCOMP_COMPRESSOR_MODE    
{  
    SHAPE_EQCOMP_COMPRESSOR_MODE_PEAK,  
    SHAPE_EQCOMP_COMPRESSOR_MODE_RUNNING_AVERAGE  
}  
```

## Constants

| Constant                                          | Description                                                                                                                                              |
| ------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- |
| SHAPE\_EQCOMP\_COMPRESSOR\_MODE\_PEAK             | In Peak detection mode, the input signal is presented directly to the comparator, such that each individual audio sample is compared with the threshold. |
| SHAPE\_EQCOMP\_COMPRESSOR\_MODE\_RUNNING\_AVERAGE | In Running Average detection mode, an approximation of the RMS level of the input signal is presented to the comparator.                                 |

## Remarks

This enumeration is used in the [SHAPE\_EQCOMP\_CONTEXT](/reference/audio/shapeeqcompcontext/structs/shape_eqcomp_context) structure. It is also used by the [SetShapeEqCompCompressorMode](/reference/audio/shapeeqcompcontext/functions/setshapeeqcompcompressormode) and [GetShapeEqCompCompressorMode](/reference/audio/shapeeqcompcontext/functions/getshapeeqcompcompressormode) functions.

For more information, see [Equalization and compression](/build/console-features/audio/overviews/shape-overview#ID4ECF) in [Overview of SHAPE](/build/console-features/audio/overviews/shape-overview).

## Requirements

**Header:** shapeeqcompcontext.h

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

## See also

[ShapeEqCompContext](/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members)
