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


## Related topics

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