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

# SetShapeEqCompAttack

> SetShapeEqCompAttack

# SetShapeEqCompAttack

コンプレッションのアタック乗数を設定します。

## Syntax

```cpp theme={null}
HRESULT SetShapeEqCompAttack(  
         SHAPE_EQCOMP_CONTEXT* context,  
         float attack  
)  
```

### パラメーター

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

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

*attack*   \
型: float

アタック乗数。

### 戻り値

型: HRESULT

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

## 解説

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

入力がアタックで指定された時間だけしきい値を超え続けるまで、目的の出力レベルには到達しません。同様に、入力がリリースで指定された時間だけしきい値を下回った後にのみ、ユニティ ゲインに戻ります。

詳細については、[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

- [ShapeEqCompContext](/ja-jp/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members.md)
- [GetShapeEqCompAttack](/ja-jp/reference/audio/shapeeqcompcontext/functions/getshapeeqcompattack.md)
- [SetShapeEqCompRelease](/ja-jp/reference/audio/shapeeqcompcontext/functions/setshapeeqcomprelease.md)
- [SetShapeEqCompThreshold](/ja-jp/reference/audio/shapeeqcompcontext/functions/setshapeeqcompthreshold.md)
- [SetShapeEqCompGain](/ja-jp/reference/audio/shapeeqcompcontext/functions/setshapeeqcompgain.md)
