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

# GetShapeEqCompRawFilterCoefficients

> GetShapeEqCompRawFilterCoefficients

# GetShapeEqCompRawFilterCoefficients

取得等化器濾波器的原始係數。

## 語法

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

### 參數

*context*   \_In\_\
類型：[SHAPE\_EQCOMP\_CONTEXT\*](/zh-TW/reference/audio/shapeeqcompcontext/structs/shape_eqcomp_context)

指向 SHAPE\_EQCOMP\_CONTEXT 結構的指標。

*filterIndex*   \
類型：[SHAPE\_EQCOMP\_FILTER\_INDEX](/zh-TW/reference/audio/shapeeqcompcontext/enums/shape_eqcomp_filter_index)

SHAPE\_EQCOMP\_FILTER\_INDEX 列舉的成員。

*a1*   \_Out\_\
類型：INT32\*

指定等化器濾波器的原始係數 a1。

*a2*   \_Out\_\
類型：INT32\*

指定等化器濾波器的原始係數 a2。

*b0*   \_Out\_\
類型：INT32\*

指定等化器濾波器的原始係數 b0。

*b1*   \_Out\_\
類型：INT32\*

指定等化器濾波器的原始係數 b1。

*b2*   \_Out\_\
類型：INT32\*

指定等化器濾波器的原始係數 b2。

### 傳回值

類型：HRESULT

HRESULT 成功或錯誤碼。

## 備註

每個雙二階 (biquad) 濾波器的係數 (b0、b1、b2、a1 和 a2) 都會儲存為 24 位元整數。這允許的係數範圍最高可達 ±7.998，適合為允許的濾波器類型提供係數：頻率範圍為 20 Hz 到 18 kHz，增益範圍為 -18 dB 到 18 dB。

如需詳細資訊，請參閱 [SHAPE 概觀](/zh-TW/build/console-features/audio/overviews/shape-overview)中的[等化與壓縮](/zh-TW/build/console-features/audio/overviews/shape-overview#ID4ECF)。

## 需求

**標頭：** shapeeqcompcontext.h

**支援的平台：** XBOX One 系列主機與 XBOX Series 主機

## 另請參閱

[ShapeEqCompContext](/zh-TW/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members)


## Related topics

- [ShapeEqCompContext](/zh-TW/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members.md)
- [GetShapeEqCompRawFilterTargetCoefficients](/zh-TW/reference/audio/shapeeqcompcontext/functions/getshapeeqcomprawfiltertargetcoefficients.md)
- [SetShapeEqCompRawFilterCoefficients](/zh-TW/reference/audio/shapeeqcompcontext/functions/setshapeeqcomprawfiltercoefficients.md)
- [SetShapeEqCompRawFilterTargetCoefficients](/zh-TW/reference/audio/shapeeqcompcontext/functions/setshapeeqcomprawfiltertargetcoefficients.md)
- [GetShapeEqCompFilterCoefficients](/zh-TW/reference/audio/shapeeqcompcontext/functions/getshapeeqcompfiltercoefficients.md)
