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

获取压缩/扩展模式。

## 语法

```cpp theme={null}
SHAPE_EQCOMP_EXPAND_MODE GetShapeEqCompExpandMode(  
         const SHAPE_EQCOMP_CONTEXT* context  
)  
```

### 参数

*context*   \_In\_\
类型：[SHAPE\_EQCOMP\_CONTEXT\*](/reference/audio/shapeeqcompcontext/structs/shape_eqcomp_context)

指向 `SHAPE_EQCOMP_CONTEXT` 对象的指针。

### 返回值

类型：[SHAPE\_EQCOMP\_EXPAND\_MODE](/reference/audio/shapeeqcompcontext/enums/shape_eqcomp_expand_mode)

`SHAPE_EQCOMP_EXPAND_MODE` 枚举的一个成员。

## 备注

通常，EQ/压缩器-扩展器模块会限制信号的动态范围。压缩器仅作用于超过特定阈值的信号；低于阈值的信号原样通过。

如果此函数的返回值为 `SHAPE_EQCOMP_EXPAND_MODE_EXPANDER`，则行为相反：扩展器作用于低于特定阈值的信号；高于阈值的信号原样通过。

有关详细信息，请参阅 [SHAPE 概述](/build/console-features/audio/overviews/shape-overview) 中的 [均衡与压缩](/build/console-features/audio/overviews/shape-overview#ID4ECF)。

## 要求

**头文件：** shapeeqcompcontext.h

**支持的平台：** XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

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


## Related topics

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