> ## 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](/reference/audio/shapefiltvolcontext/structs/shape_filtvol_context)\*

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

*ShapeFilterMode*   \
类型:[SHAPE\_FILTER\_MODE](/reference/audio/shapefiltvolcontext/enums/shape_filter_mode)

[SHAPE\_FILTER\_MODE](/reference/audio/shapefiltvolcontext/enums/shape_filter_mode) 枚举的一个成员。

### 返回值

类型:HRESULT

HRESULT 成功或错误代码。

## 注解

滤波器/音量(FLTVOL)模块实现为 Chamberlin 滤波器。它提供三种滤波模式(低通、带通和高通)以及一种旁路模式。若要获取当前模式,请使用 [GetShapeFiltVolMode](/reference/audio/shapefiltvolcontext/functions/getshapefiltvolmode)。

其滤波行为设计上与 XAudio2 中的完全一致。

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

## 要求

**头文件:** shapefiltvolcontext.h

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

## 另请参阅

[ShapeFiltVolContext](/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members)


## Related topics

- [SHAPE_FILTER_MODE](/zh-CN/reference/audio/shapefiltvolcontext/enums/shape_filter_mode.md)
- [GetShapeFiltVolMode](/zh-CN/reference/audio/shapefiltvolcontext/functions/getshapefiltvolmode.md)
- [ShapeFiltVolContext](/zh-CN/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members.md)
- [SetShapeFiltVolQ](/zh-CN/reference/audio/shapefiltvolcontext/functions/setshapefiltvolq.md)
- [SetShapeFiltVolFrequency](/zh-CN/reference/audio/shapefiltvolcontext/functions/setshapefiltvolfrequency.md)
