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

# GetShapeEqCompLogGain

> GetShapeEqCompLogGain

# GetShapeEqCompLogGain

Gets the log gain mode of the compressor.

## Syntax

```cpp theme={null}
SHAPE_EQCOMP_LOG_GAIN GetShapeEqCompLogGain(  
         const SHAPE_EQCOMP_CONTEXT* context  
)  
```

### Parameters

*context*   \_In\_\
Type: [SHAPE\_EQCOMP\_CONTEXT\*](/reference/audio/shapeeqcompcontext/structs/shape_eqcomp_context)

Pointer to a `SHAPE_EQCOMP_CONTEXT` object.

### Return value

Type: [SHAPE\_EQCOMP\_LOG\_GAIN](/reference/audio/shapeeqcompcontext/enums/shape_eqcomp_log_gain)

A member of the `SHAPE_EQCOMP_LOG_GAIN` enumeration.

## Remarks

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 or log based.

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

[SetShapeEqCompLogGain](/reference/audio/shapeeqcompcontext/functions/setshapeeqcomploggain)\
[SHAPE\_EQCOMP\_LOG\_GAIN](/reference/audio/shapeeqcompcontext/enums/shape_eqcomp_log_gain)\
[ShapeEqCompContext](/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members)


## Related topics

- [SetShapeEqCompLogGain](/reference/audio/shapeeqcompcontext/functions/setshapeeqcomploggain.md)
- [SHAPE_EQCOMP_LOG_GAIN](/reference/audio/shapeeqcompcontext/enums/shape_eqcomp_log_gain.md)
- [ShapeEqCompContext](/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members.md)
- [GetShapeEqCompGain](/reference/audio/shapeeqcompcontext/functions/getshapeeqcompgain.md)
- [GetShapeEqCompRelease](/reference/audio/shapeeqcompcontext/functions/getshapeeqcomprelease.md)
