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

# SetShapeFiltVolMode

> SetShapeFiltVolMode

# SetShapeFiltVolMode

設定狀態變數濾波器的模式。

## 語法

```cpp theme={null}
HRESULT SetShapeFiltVolMode(  
         SHAPE_FILTVOL_CONTEXT* context,  
         SHAPE_FILTER_MODE ShapeFilterMode  
)  
```

### 參數

*context*   \_Inout\_\
類型：[SHAPE\_FILTVOL\_CONTEXT](/zh-TW/reference/audio/shapefiltvolcontext/structs/shape_filtvol_context)\*

指向 [SHAPE\_FILTVOL\_CONTEXT](/zh-TW/reference/audio/shapefiltvolcontext/structs/shape_filtvol_context) 物件的指標。

*ShapeFilterMode*   \
類型：[SHAPE\_FILTER\_MODE](/zh-TW/reference/audio/shapefiltvolcontext/enums/shape_filter_mode)

[SHAPE\_FILTER\_MODE](/zh-TW/reference/audio/shapefiltvolcontext/enums/shape_filter_mode) 列舉的成員。

### 傳回值

類型：HRESULT

HRESULT 成功或錯誤碼。

## 備註

濾波器/音量 (FLTVOL) 區塊是以 Chamberlin 濾波器實作。它提供三種濾波模式 (低通、帶通和高通) 以及一種略過模式。若要取得目前的模式，請使用 [GetShapeFiltVolMode](/zh-TW/reference/audio/shapefiltvolcontext/functions/getshapefiltvolmode)。

濾波行為的設計與 XAudio2 中的濾波行為完全相同。

如需詳細資訊，請參閱 [SHAPE 概觀](/zh-TW/build/console-features/audio/overviews/shape-overview)中的[濾波器/音量區塊 (FLTVOL)](/zh-TW/build/console-features/audio/overviews/shape-overview#ID4EBH) 一節。

## 需求

**標頭：** shapefiltvolcontext.h

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

## 另請參閱

[ShapeFiltVolContext](/zh-TW/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members)


## Related topics

- [SetShapeFiltVolMode](/reference/audio/shapefiltvolcontext/functions/setshapefiltvolmode.md)
- [GetShapeFiltVolMode](/reference/audio/shapefiltvolcontext/functions/getshapefiltvolmode.md)
- [SHAPE_FILTER_MODE](/reference/audio/shapefiltvolcontext/enums/shape_filter_mode.md)
