> ## Documentation Index
> Fetch the complete documentation index at: https://docs.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\*](https://docs.xbox.com/ja-jp/reference/audio/shapeeqcompcontext/structs/shape_eqcomp_context.md)

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

*mode*   \
型: [SHAPE\_EQCOMP\_EXPAND\_MODE](https://docs.xbox.com/ja-jp/reference/audio/shapeeqcompcontext/enums/shape_eqcomp_expand_mode.md)

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

### 戻り値

型: HRESULT

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

## 解説

通常、EQ/コンプレッサー-エキスパンダー ブロックは信号のダイナミック レンジを制限します。コンプレッサーは、特定のしきい値を超える信号にのみ作用し、しきい値を下回る信号は変更されずに通過します。

モードが `SHAPE_EQCOMP_EXPAND_MODE_EXPANDER` に設定されている場合、動作は反転します。エキスパンダーは、特定のしきい値を下回る信号に作用し、しきい値を上回る信号は変更されずに通過します。

詳細については、[SHAPE の概要](https://docs.xbox.com/ja-jp/build/console-features/audio/overviews/shape-overview.md)の[イコライゼーションおよびコンプレッション](https://docs.xbox.com/ja-jp/build/console-features/audio/overviews/shape-overview.md#ID4ECF)を参照してください。

## 要件

**ヘッダー:** shapeeqcompcontext.h

**対応プラットフォーム:** XBOX One ファミリ本体および XBOX Series 本体

## 関連項目

[GetShapeEqCompExpandMode](https://docs.xbox.com/ja-jp/reference/audio/shapeeqcompcontext/functions/getshapeeqcompexpandmode.md)\
[SetShapeEqCompThreshold](https://docs.xbox.com/ja-jp/reference/audio/shapeeqcompcontext/functions/setshapeeqcompthreshold.md)\
[ShapeEqCompContext](https://docs.xbox.com/ja-jp/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members.md)


## Related topics

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