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

# SetShapeEqCompRawFilterTargetCoefficients

> SetShapeEqCompRawFilterTargetCoefficients

# SetShapeEqCompRawFilterTargetCoefficients

设置均衡器滤波器的原始目标系数。

## 语法

```cpp theme={null}
HRESULT SetShapeEqCompRawFilterTargetCoefficients(  
         SHAPE_EQCOMP_CONTEXT* context,  
         SHAPE_EQCOMP_FILTER_INDEX filterIndex,  
         INT32 a1,  
         INT32 a2,  
         INT32 b0,  
         INT32 b1,  
         INT32 b2  
)  
```

### 参数

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

指向 SHAPE\_EQCOMP\_CONTEXT 结构的指针。

*filterIndex*   \
类型:[SHAPE\_EQCOMP\_FILTER\_INDEX](/reference/audio/shapeeqcompcontext/enums/shape_eqcomp_filter_index)

SHAPE\_EQCOMP\_FILTER\_INDEX 枚举的一个成员。

*a1*   \
类型:INT32

指定均衡器滤波器的原始目标系数 a1。

*a2*   \
类型:INT32

指定均衡器滤波器的原始目标系数 a2。

*b0*   \
类型:INT32

指定均衡器滤波器的原始目标系数 b0。

*b1*   \
类型:INT32

指定均衡器滤波器的原始目标系数 b1。

*b2*   \
类型:INT32

指定均衡器滤波器的原始目标系数 b2。

### 返回值

类型:HRESULT

HRESULT 成功或错误代码。

## 注解

每个双二阶(biquad)滤波器的系数(b0、b1、b2、a1 和 a2)以 24 位整数形式存储。这样系数范围最大可达 ±7.998,适用于所允许的滤波器类型的系数:频率范围为 20 Hz 至 18 kHz,增益范围为 -18 dB 至 18 dB。

有关详细信息,请参阅 [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)
- [GetShapeEqCompRawFilterTargetCoefficients](/zh-CN/reference/audio/shapeeqcompcontext/functions/getshapeeqcomprawfiltertargetcoefficients.md)
- [SetShapeEqCompRawFilterCoefficients](/zh-CN/reference/audio/shapeeqcompcontext/functions/setshapeeqcomprawfiltercoefficients.md)
- [SetShapeEqCompFilterTargetCoefficients](/zh-CN/reference/audio/shapeeqcompcontext/functions/setshapeeqcompfiltertargetcoefficients.md)
- [GetShapeEqCompRawFilterCoefficients](/zh-CN/reference/audio/shapeeqcompcontext/functions/getshapeeqcomprawfiltercoefficients.md)
