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

# SetShapeEqCompRelease

> SetShapeEqCompRelease

# SetShapeEqCompRelease

设置压缩释放乘数。

## 语法

```cpp theme={null}
HRESULT SetShapeEqCompRelease(  
         SHAPE_EQCOMP_CONTEXT* context,  
         float release  
)  
```

### 参数

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

指向 `SHAPE_EQCOMP_CONTEXT` 对象的指针。

*release*   \
类型:float

释放乘数。

### 返回值

类型:HRESULT

HRESULT 成功或错误代码。

## 注解

启动(Attack)和释放(Release)以毫秒指定,分别对应压缩器在信号超出或低于阈值时调整输出增益的速度。这些调整可以是线性或对数方式。

只有当输入超过阈值的持续时间达到 attack 指定的时长后,才会达到期望的输出电平;同样,只有当输入低于阈值的持续时间达到 release 指定的时长后,才会返回到单位增益。

有关详细信息,请参阅 [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)
- [GetShapeEqCompRelease](/zh-CN/reference/audio/shapeeqcompcontext/functions/getshapeeqcomprelease.md)
- [SetShapeEqCompThreshold](/zh-CN/reference/audio/shapeeqcompcontext/functions/setshapeeqcompthreshold.md)
- [SetShapeEqCompAttack](/zh-CN/reference/audio/shapeeqcompcontext/functions/setshapeeqcompattack.md)
- [SetShapeEqCompGain](/zh-CN/reference/audio/shapeeqcompcontext/functions/setshapeeqcompgain.md)
