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

# SetShapeFiltVolQ

> SetShapeFiltVolQ

# SetShapeFiltVolQ

设置 Q(品质)因子。

## 语法

```cpp theme={null}
HRESULT SetShapeFiltVolQ(  
         SHAPE_FILTVOL_CONTEXT* context,  
         float q  
)  
```

### 参数

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

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

*q*   \
类型:float

Q 因子。

### 返回值

类型:HRESULT

HRESULT 成功或错误代码。

## 注解

滤波器/音量(FLTVOL)模块实现为 Chamberlin 滤波器。Q 值越大,滤波器的带宽越窄。若要获取当前的 Q 值,请使用 [GetShapeFiltVolQ](/reference/audio/shapefiltvolcontext/functions/getshapefiltvolq)。

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

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

## 要求

**头文件:** shapefiltvolcontext.h

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

## 另请参阅

[SetShapeFiltVolQTarget](/reference/audio/shapefiltvolcontext/functions/setshapefiltvolqtarget)\
[ShapeFiltVolContext](/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members)


## Related topics

- [SetShapeFiltVolQTarget](/zh-CN/reference/audio/shapefiltvolcontext/functions/setshapefiltvolqtarget.md)
- [GetShapeFiltVolQ](/zh-CN/reference/audio/shapefiltvolcontext/functions/getshapefiltvolq.md)
- [ShapeFiltVolContext](/zh-CN/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members.md)
- [SetShapeFiltVolFrequency](/zh-CN/reference/audio/shapefiltvolcontext/functions/setshapefiltvolfrequency.md)
- [SetShapeFiltVolMode](/zh-CN/reference/audio/shapefiltvolcontext/functions/setshapefiltvolmode.md)
