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

> SHAPE_EQCOMP_LOG_GAIN

Compressor gain modes.

## Syntax

```cpp theme={null}
enum SHAPE_EQCOMP_LOG_GAIN    
{  
    SHAPE_EQCOMP_LOG_GAIN_NORMAL,  
    SHAPE_EQCOMP_LOG_GAIN_LOG  
}  
```

## Constants

| Constant | Description |
| - | - |
| SHAPE\_EQCOMP\_LOG\_GAIN\_NORMAL | Normal mode. |
| SHAPE\_EQCOMP\_LOG\_GAIN\_LOG | Log gain mode. |

## Remarks

This enumeration is used in the [GetShapeEqCompLogGain](https://docs.xbox.com/reference/audio/shapeeqcompcontext/functions/getshapeeqcomploggain.md) and [SetShapeEqCompLogGain](https://docs.xbox.com/reference/audio/shapeeqcompcontext/functions/setshapeeqcomploggain.md) functions.

The attack and release values specify how quickly the compressor is to vary the output gain in response to a signal that exceeds the threshold or falls below it. These adjustments can be linear (`SHAPE_EQCOMP_LOG_GAIN_NORMAL`) or log based (`SHAPE_EQCOMP_LOG_GAIN_LOG`).

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

- [SetShapeEqCompLogGain](https://docs.xbox.com/reference/audio/shapeeqcompcontext/functions/setshapeeqcomploggain.md)
- [GetShapeEqCompLogGain](https://docs.xbox.com/reference/audio/shapeeqcompcontext/functions/getshapeeqcomploggain.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)
- [ACP_COMMAND_UPDATE_EQCOMP_CONTEXT](https://docs.xbox.com/reference/audio/acphal/structs/acp_command_update_eqcomp_context.md)
