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

# SetShapeEqCompLogGain

> SetShapeEqCompLogGain

# SetShapeEqCompLogGain

コンプレッサーの対数ゲイン モードを設定します。

## Syntax

```cpp theme={null}
HRESULT SetShapeEqCompLogGain(  
         SHAPE_EQCOMP_CONTEXT* context,  
         SHAPE_EQCOMP_LOG_GAIN mode  
)  
```

### パラメーター

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

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

*mode*   \
型: [SHAPE\_EQCOMP\_LOG\_GAIN](/reference/audio/shapeeqcompcontext/enums/shape_eqcomp_log_gain)

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

### 戻り値

型: HRESULT

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

## 解説

アタックおよびリリース値は、しきい値を超える、またはしきい値を下回る信号に応じて、コンプレッサーが出力ゲインをどの程度素早く変化させるかを指定します。これらの調整はリニアまたは対数ベースにすることができます。

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

## 要件

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

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

## 関連項目

[GetShapeEqCompLogGain](/reference/audio/shapeeqcompcontext/functions/getshapeeqcomploggain)\
[SHAPE\_EQCOMP\_LOG\_GAIN](/reference/audio/shapeeqcompcontext/enums/shape_eqcomp_log_gain)\
[ShapeEqCompContext](/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members)


## Related topics

- [GetShapeEqCompLogGain](/ja-jp/reference/audio/shapeeqcompcontext/functions/getshapeeqcomploggain.md)
- [SHAPE_EQCOMP_LOG_GAIN](/ja-jp/reference/audio/shapeeqcompcontext/enums/shape_eqcomp_log_gain.md)
- [ShapeEqCompContext](/ja-jp/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members.md)
- [SetShapeEqCompGain](/ja-jp/reference/audio/shapeeqcompcontext/functions/setshapeeqcompgain.md)
- [SetShapeEqCompGainTarget](/ja-jp/reference/audio/shapeeqcompcontext/functions/setshapeeqcompgaintarget.md)
