> ## 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\*](/reference/audio/shapeeqcompcontext/structs/shape_eqcomp_context)

指向 `SHAPE_EQCOMP_CONTEXT` 对象的指针。

### 返回值

类型：float

启动乘数。

## 备注

启动和释放以毫秒为单位指定，对应于压缩器响应超过阈值或低于阈值的信号时改变输出增益的速度。这些调整可以是线性的或基于对数的。

只有当输入超过阈值的时间达到启动指定的时长后，才会达到期望的输出电平；同样，只有在输入低于阈值的时间达到释放指定的时长后，输出才会返回到单位增益。

有关详细信息，请参阅 [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](/zh-CN/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members.md)
- [SetShapeEqCompAttack](/zh-CN/reference/audio/shapeeqcompcontext/functions/setshapeeqcompattack.md)
- [GetShapeEqCompGain](/zh-CN/reference/audio/shapeeqcompcontext/functions/getshapeeqcompgain.md)
- [GetShapeEqCompRatio](/zh-CN/reference/audio/shapeeqcompcontext/functions/getshapeeqcompratio.md)
- [GetShapeEqCompRelease](/zh-CN/reference/audio/shapeeqcompcontext/functions/getshapeeqcomprelease.md)
