> ## 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](/zh-TW/reference/audio/shapeeqcompcontext/structs/shape_eqcomp_context) 結構中。[SetShapeEqCompCompressorMode](/zh-TW/reference/audio/shapeeqcompcontext/functions/setshapeeqcompcompressormode) 和 [GetShapeEqCompCompressorMode](/zh-TW/reference/audio/shapeeqcompcontext/functions/getshapeeqcompcompressormode) 函式也會使用此列舉。

如需詳細資訊，請參閱 [SHAPE 概觀](/zh-TW/build/console-features/audio/overviews/shape-overview) 中的 [等化與壓縮](/zh-TW/build/console-features/audio/overviews/shape-overview#ID4ECF)。

## 需求

**標頭：** shapeeqcompcontext.h

**支援的平台：** XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[ShapeEqCompContext](/zh-TW/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members)


## Related topics

- [SetShapeEqCompCompressorMode](/zh-TW/reference/audio/shapeeqcompcontext/functions/setshapeeqcompcompressormode.md)
- [GetShapeEqCompCompressorMode](/zh-TW/reference/audio/shapeeqcompcontext/functions/getshapeeqcompcompressormode.md)
- [ShapeEqCompContext](/zh-TW/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members.md)
- [SHAPE_EQCOMP_CONTEXT](/zh-TW/reference/audio/shapeeqcompcontext/structs/shape_eqcomp_context.md)
- [SHAPE_EQCOMP_EXPAND_MODE](/zh-TW/reference/audio/shapeeqcompcontext/enums/shape_eqcomp_expand_mode.md)
