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

# SetShapeEqCompExpandMode

> SetShapeEqCompExpandMode

# SetShapeEqCompExpandMode

コンプレッション / エキスパンション モードを設定します。

## Syntax

```cpp theme={null}
HRESULT SetShapeEqCompExpandMode(  
         SHAPE_EQCOMP_CONTEXT* context,  
         SHAPE_EQCOMP_EXPAND_MODE mode  
)  
```

### パラメーター

*context*   \_Inout\_\
型: [SHAPE\_EQCOMP\_CONTEXT\*](/reference/audio/shapeeqcompcontext/structs/shape_eqcomp_context)

`SHAPE_EQCOMP_CONTEXT` オブジェクトへのポインター。

*mode*   \
型: [SHAPE\_EQCOMP\_EXPAND\_MODE](/reference/audio/shapeeqcompcontext/enums/shape_eqcomp_expand_mode)

`SHAPE_EQCOMP_EXPAND_MODE` 列挙型のメンバー。

### 戻り値

型: HRESULT

HRESULT の成功またはエラー コード。

## 解説

通常、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 本体

## 関連項目

[GetShapeEqCompExpandMode](/reference/audio/shapeeqcompcontext/functions/getshapeeqcompexpandmode)\
[SetShapeEqCompThreshold](/reference/audio/shapeeqcompcontext/functions/setshapeeqcompthreshold)\
[ShapeEqCompContext](/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members)


## Related topics

- [GetShapeEqCompExpandMode](/ja-jp/reference/audio/shapeeqcompcontext/functions/getshapeeqcompexpandmode.md)
- [ShapeEqCompContext](/ja-jp/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members.md)
- [SetShapeEqCompThreshold](/ja-jp/reference/audio/shapeeqcompcontext/functions/setshapeeqcompthreshold.md)
- [SetShapeEqCompCompressorMode](/ja-jp/reference/audio/shapeeqcompcontext/functions/setshapeeqcompcompressormode.md)
- [SetShapeEqCompSidechainMode](/ja-jp/reference/audio/shapeeqcompcontext/functions/setshapeeqcompsidechainmode.md)
