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

# 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](https://docs.xbox.com/reference/audio/shapeeqcompcontext/structs/shape_eqcomp_context.md) structure. It is also used by the [SetShapeEqCompCompressorMode](https://docs.xbox.com/reference/audio/shapeeqcompcontext/functions/setshapeeqcompcompressormode.md) and [GetShapeEqCompCompressorMode](https://docs.xbox.com/reference/audio/shapeeqcompcontext/functions/getshapeeqcompcompressormode.md) functions.

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

## Requirements

**Header:** shapeeqcompcontext.h

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

## See also

[ShapeEqCompContext](https://docs.xbox.com/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members.md)


## Related topics

- [SetShapeEqCompCompressorMode](https://docs.xbox.com/reference/audio/shapeeqcompcontext/functions/setshapeeqcompcompressormode.md)
- [GetShapeEqCompCompressorMode](https://docs.xbox.com/reference/audio/shapeeqcompcontext/functions/getshapeeqcompcompressormode.md)
- [ShapeEqCompContext](https://docs.xbox.com/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members.md)
- [SHAPE_EQCOMP_CONTEXT](https://docs.xbox.com/reference/audio/shapeeqcompcontext/structs/shape_eqcomp_context.md)
- [SHAPE_EQCOMP_EXPAND_MODE](https://docs.xbox.com/reference/audio/shapeeqcompcontext/enums/shape_eqcomp_expand_mode.md)
