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

> SHAPE_EQCOMP_COMPRESSOR_MODE

# SHAPE\_EQCOMP\_COMPRESSOR\_MODE

压缩器模式。

## 语法

```cpp theme={null}
enum SHAPE_EQCOMP_COMPRESSOR_MODE    
{  
    SHAPE_EQCOMP_COMPRESSOR_MODE_PEAK,  
    SHAPE_EQCOMP_COMPRESSOR_MODE_RUNNING_AVERAGE  
}  
```

## 常量

| 常量                                                | 说明                                        |
| ------------------------------------------------- | ----------------------------------------- |
| SHAPE\_EQCOMP\_COMPRESSOR\_MODE\_PEAK             | 在峰值检测模式下，输入信号直接送入比较器，从而将每个单独的音频采样与阈值进行比较。 |
| SHAPE\_EQCOMP\_COMPRESSOR\_MODE\_RUNNING\_AVERAGE | 在滑动平均检测模式下，输入信号 RMS 电平的近似值将送入比较器。         |

## 备注

此枚举用于 [SHAPE\_EQCOMP\_CONTEXT](/reference/audio/shapeeqcompcontext/structs/shape_eqcomp_context) 结构。它也由 [SetShapeEqCompCompressorMode](/reference/audio/shapeeqcompcontext/functions/setshapeeqcompcompressormode) 和 [GetShapeEqCompCompressorMode](/reference/audio/shapeeqcompcontext/functions/getshapeeqcompcompressormode) 函数使用。

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

## 要求

**头文件：** shapeeqcompcontext.h

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

## 另请参阅

[ShapeEqCompContext](/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members)
