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

设置压缩器的对数增益模式。

## 语法

```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](/zh-CN/reference/audio/shapeeqcompcontext/functions/getshapeeqcomploggain.md)
- [SHAPE_EQCOMP_LOG_GAIN](/zh-CN/reference/audio/shapeeqcompcontext/enums/shape_eqcomp_log_gain.md)
- [ShapeEqCompContext](/zh-CN/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members.md)
- [SetShapeEqCompGain](/zh-CN/reference/audio/shapeeqcompcontext/functions/setshapeeqcompgain.md)
- [SetShapeEqCompGainTarget](/zh-CN/reference/audio/shapeeqcompcontext/functions/setshapeeqcompgaintarget.md)
