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

# SHAPE_EQCOMP_LOG_GAIN

> SHAPE_EQCOMP_LOG_GAIN

# SHAPE\_EQCOMP\_LOG\_GAIN

压缩器增益模式。

## 语法

```cpp theme={null}
enum SHAPE_EQCOMP_LOG_GAIN    
{  
    SHAPE_EQCOMP_LOG_GAIN_NORMAL,  
    SHAPE_EQCOMP_LOG_GAIN_LOG  
}  
```

## 常量

| 常量                               | 说明      |
| -------------------------------- | ------- |
| SHAPE\_EQCOMP\_LOG\_GAIN\_NORMAL | 常规模式。   |
| SHAPE\_EQCOMP\_LOG\_GAIN\_LOG    | 对数增益模式。 |

## 备注

此枚举用于 [GetShapeEqCompLogGain](/reference/audio/shapeeqcompcontext/functions/getshapeeqcomploggain) 和 [SetShapeEqCompLogGain](/reference/audio/shapeeqcompcontext/functions/setshapeeqcomploggain) 函数。

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

有关详细信息，请参阅 [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

- [SetShapeEqCompLogGain](/zh-CN/reference/audio/shapeeqcompcontext/functions/setshapeeqcomploggain.md)
- [GetShapeEqCompLogGain](/zh-CN/reference/audio/shapeeqcompcontext/functions/getshapeeqcomploggain.md)
- [ShapeEqCompContext](/zh-CN/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members.md)
- [SHAPE_EQCOMP_CONTEXT](/zh-CN/reference/audio/shapeeqcompcontext/structs/shape_eqcomp_context.md)
- [ACP_COMMAND_UPDATE_EQCOMP_CONTEXT](/zh-CN/reference/audio/acphal/structs/acp_command_update_eqcomp_context.md)
