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

> 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](/reference/audio/shapeeqcompcontext/functions/getshapeeqcomploggain) and [SetShapeEqCompLogGain](/reference/audio/shapeeqcompcontext/functions/setshapeeqcomploggain) 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](/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)


## Related topics

- [SetShapeEqCompLogGain](/reference/audio/shapeeqcompcontext/functions/setshapeeqcomploggain.md)
- [GetShapeEqCompLogGain](/reference/audio/shapeeqcompcontext/functions/getshapeeqcomploggain.md)
- [ShapeEqCompContext](/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members.md)
- [SHAPE_EQCOMP_CONTEXT](/reference/audio/shapeeqcompcontext/structs/shape_eqcomp_context.md)
- [ACP_COMMAND_UPDATE_EQCOMP_CONTEXT](/reference/audio/acphal/structs/acp_command_update_eqcomp_context.md)
