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

# GetShapeEqCompAttack

> GetShapeEqCompAttack

# GetShapeEqCompAttack

取得壓縮起音乘數。

## 語法

```cpp theme={null}
float GetShapeEqCompAttack(  
         const SHAPE_EQCOMP_CONTEXT* context  
)  
```

### 參數

*context*   \_In\_\
類型：[SHAPE\_EQCOMP\_CONTEXT\*](/zh-TW/reference/audio/shapeeqcompcontext/structs/shape_eqcomp_context)

指向 `SHAPE_EQCOMP_CONTEXT` 物件的指標。

### 傳回值

類型：float

起音乘數。

## 備註

起音和釋音以毫秒為單位指定，對應於壓縮器在訊號超過或低於閾值時應以多快的速度改變輸出增益。這些調整可以是線性或以對數為基礎。

直到輸入超過閾值的時間達到起音所指定的時間，才會達到所需的輸出位準；同樣地，只有在輸入低於閾值的時間達到釋音所指定的時間後，才會回到單位增益。

如需詳細資訊，請參閱 [SHAPE 概觀](/zh-TW/build/console-features/audio/overviews/shape-overview) 中的 [等化與壓縮](/zh-TW/build/console-features/audio/overviews/shape-overview#ID4ECF)。

## 需求

**標頭：** shapeeqcompcontext.h

**支援的平台：** XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[ShapeEqCompContext](/zh-TW/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members)


## Related topics

- [ShapeEqCompContext](/zh-TW/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members.md)
- [SetShapeEqCompAttack](/zh-TW/reference/audio/shapeeqcompcontext/functions/setshapeeqcompattack.md)
- [GetShapeEqCompRelease](/zh-TW/reference/audio/shapeeqcompcontext/functions/getshapeeqcomprelease.md)
- [GetShapeEqCompGain](/zh-TW/reference/audio/shapeeqcompcontext/functions/getshapeeqcompgain.md)
- [GetShapeEqCompThreshold](/zh-TW/reference/audio/shapeeqcompcontext/functions/getshapeeqcompthreshold.md)
