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

# GetShapeEqCompExpandMode

> GetShapeEqCompExpandMode

# GetShapeEqCompExpandMode

Gets the compression/expansion mode.

## Syntax

```cpp theme={null}
SHAPE_EQCOMP_EXPAND_MODE GetShapeEqCompExpandMode(  
         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\_EXPAND\_MODE](/reference/audio/shapeeqcompcontext/enums/shape_eqcomp_expand_mode)

A member of the `SHAPE_EQCOMP_EXPAND_MODE` enumeration.

## Remarks

Typically, the EQ/Compressor-Expander block limits the dynamic range of the signal. The compressor acts only on signals that exceed a specific threshold; signals under the threshold pass through unaltered.

If the return value of this function is `SHAPE_EQCOMP_EXPAND_MODE_EXPANDER`, the behavior is reversed: The expander acts on signals below a specific threshold; signals above the threshold pass through unaltered.

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

[SetShapeEqCompExpandMode](/reference/audio/shapeeqcompcontext/functions/setshapeeqcompexpandmode)\
[GetShapeEqCompThreshold](/reference/audio/shapeeqcompcontext/functions/getshapeeqcompthreshold)\
[ShapeEqCompContext](/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members)


## Related topics

- [SetShapeEqCompExpandMode](/reference/audio/shapeeqcompcontext/functions/setshapeeqcompexpandmode.md)
- [ShapeEqCompContext](/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members.md)
- [GetShapeEqCompThreshold](/reference/audio/shapeeqcompcontext/functions/getshapeeqcompthreshold.md)
- [GetShapeEqCompCompressorMode](/reference/audio/shapeeqcompcontext/functions/getshapeeqcompcompressormode.md)
- [GetShapeEqCompSidechainMode](/reference/audio/shapeeqcompcontext/functions/getshapeeqcompsidechainmode.md)
