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

# GetShapeFiltVolOutputGainTarget

> GetShapeFiltVolOutputGainTarget

# GetShapeFiltVolOutputGainTarget

获取输出增益目标值。

## 语法

```cpp theme={null}
float GetShapeFiltVolOutputGainTarget(  
         const SHAPE_FILTVOL_CONTEXT* context  
)  
```

### 参数

*context*   \_In\_\
类型:[SHAPE\_FILTVOL\_CONTEXT](/reference/audio/shapefiltvolcontext/structs/shape_filtvol_context)\*

指向 [SHAPE\_FILTVOL\_CONTEXT](/reference/audio/shapefiltvolcontext/structs/shape_filtvol_context) 对象的指针。

### 返回值

类型:float

增益目标值。

## 注解

增益目标值和增益是范围在 -2.0 到 2.0 之间的幅度值,负值表示信号反相。

| 值           | 说明        |
| :---------- | :-------- |
| 1.0 到 2.0   | 放大        |
| 1.0         | 单位增益      |
| 0.0 到 1.0   | 增益衰减      |
| 0.0         | 静音        |
| -1.0 到 0.0  | 增益衰减;信号反相 |
| -1.0        | 单位增益;信号反相 |
| -2.0 到 -1.0 | 放大;信号反相   |

若要更改输出增益目标值,请使用 [SetShapeFiltVolOutputGainTarget](/reference/audio/shapefiltvolcontext/functions/setshapefiltvoloutputgaintarget)。

有关详细信息,请参阅 [SHAPE 概述](/build/console-features/audio/overviews/shape-overview) 的 [滤波器/音量模块 (FLTVOL)](/build/console-features/audio/overviews/shape-overview#ID4EBH) 部分。

## 要求

**头文件:** shapefiltvolcontext.h

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

## 另请参阅

[GetShapeFiltVolOutputGain](/reference/audio/shapefiltvolcontext/functions/getshapefiltvoloutputgain)\
[ShapeFiltVolContext](/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members)


## Related topics

- [GetShapeFiltVolOutputGain](/zh-CN/reference/audio/shapefiltvolcontext/functions/getshapefiltvoloutputgain.md)
- [SetShapeFiltVolOutputGainTarget](/zh-CN/reference/audio/shapefiltvolcontext/functions/setshapefiltvoloutputgaintarget.md)
- [ShapeFiltVolContext](/zh-CN/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members.md)
- [SetShapeFiltVolOutputGain](/zh-CN/reference/audio/shapefiltvolcontext/functions/setshapefiltvoloutputgain.md)
- [GetShapeFiltVolQTarget](/zh-CN/reference/audio/shapefiltvolcontext/functions/getshapefiltvolqtarget.md)
