> ## Documentation Index
> Fetch the complete documentation index at: https://docs.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\*](https://docs.xbox.com/zh-CN/reference/audio/shapeeqcompcontext/structs/shape_eqcomp_context.md)

指向 `SHAPE_EQCOMP_CONTEXT` 对象的指针。

*mode*   \
类型：[SHAPE\_EQCOMP\_LOG\_GAIN](https://docs.xbox.com/zh-CN/reference/audio/shapeeqcompcontext/enums/shape_eqcomp_log_gain.md)

`SHAPE_EQCOMP_LOG_GAIN` 枚举的一个成员。

### 返回值

类型：HRESULT

HRESULT 成功或错误代码。

## 备注

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

有关详细信息，请参阅 [SHAPE 概述](https://docs.xbox.com/zh-CN/build/console-features/audio/overviews/shape-overview.md) 中的 [均衡与压缩](https://docs.xbox.com/zh-CN/build/console-features/audio/overviews/shape-overview.md#ID4ECF)。

## 要求

**头文件：** shapeeqcompcontext.h

**支持的平台：** XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

[GetShapeEqCompLogGain](https://docs.xbox.com/zh-CN/reference/audio/shapeeqcompcontext/functions/getshapeeqcomploggain.md)\
[SHAPE\_EQCOMP\_LOG\_GAIN](https://docs.xbox.com/zh-CN/reference/audio/shapeeqcompcontext/enums/shape_eqcomp_log_gain.md)\
[ShapeEqCompContext](https://docs.xbox.com/zh-CN/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members.md)


## Related topics

- [GetShapeEqCompLogGain](https://docs.xbox.com/zh-CN/reference/audio/shapeeqcompcontext/functions/getshapeeqcomploggain.md)
- [SHAPE_EQCOMP_LOG_GAIN](https://docs.xbox.com/zh-CN/reference/audio/shapeeqcompcontext/enums/shape_eqcomp_log_gain.md)
- [ShapeEqCompContext](https://docs.xbox.com/zh-CN/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members.md)
- [SetShapeEqCompGain](https://docs.xbox.com/zh-CN/reference/audio/shapeeqcompcontext/functions/setshapeeqcompgain.md)
- [SetShapeEqCompGainTarget](https://docs.xbox.com/zh-CN/reference/audio/shapeeqcompcontext/functions/setshapeeqcompgaintarget.md)
