> ## Documentation Index
> Fetch the complete documentation index at: https://docs.xbox.com/llms.txt
> Use this file to discover all available pages before exploring further.

# SetShapeFiltVolFrequency

> SetShapeFiltVolFrequency

# SetShapeFiltVolFrequency

设置 FLTVOL 上下文的转折频率。

## 语法

```cpp theme={null}
HRESULT SetShapeFiltVolFrequency(  
         SHAPE_FILTVOL_CONTEXT* context,  
         float frequency  
)  
```

### 参数

*context*   \_Inout\_\
类型:[SHAPE\_FILTVOL\_CONTEXT](https://docs.xbox.com/zh-CN/reference/audio/shapefiltvolcontext/structs/shape_filtvol_context.md)\*

指向 [SHAPE\_FILTVOL\_CONTEXT](https://docs.xbox.com/zh-CN/reference/audio/shapefiltvolcontext/structs/shape_filtvol_context.md) 对象的指针。

*frequency*   \
类型:float

转折频率。必须在 0-7999 Hz 的范围内。

### 返回值

类型:HRESULT

HRESULT 成功或错误代码。

## 注解

滤波器/音量(FLTVOL)模块实现为 Chamberlin 滤波器。若要获取当前的转折频率,请使用 [GetShapeFiltVolFrequency](https://docs.xbox.com/zh-CN/reference/audio/shapefiltvolcontext/functions/getshapefiltvolfrequency.md)。

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

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

## 要求

**头文件:** shapefiltvolcontext.h

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

## 另请参阅

[SetShapeFiltVolFrequencyTarget](https://docs.xbox.com/zh-CN/reference/audio/shapefiltvolcontext/functions/setshapefiltvolfrequencytarget.md)\
[ShapeFiltVolContext](https://docs.xbox.com/zh-CN/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members.md)


## Related topics

- [SetShapeFiltVolFrequencyTarget](https://docs.xbox.com/zh-CN/reference/audio/shapefiltvolcontext/functions/setshapefiltvolfrequencytarget.md)
- [GetShapeFiltVolFrequency](https://docs.xbox.com/zh-CN/reference/audio/shapefiltvolcontext/functions/getshapefiltvolfrequency.md)
- [ShapeFiltVolContext](https://docs.xbox.com/zh-CN/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members.md)
- [GetShapeFiltVolFrequencyTarget](https://docs.xbox.com/zh-CN/reference/audio/shapefiltvolcontext/functions/getshapefiltvolfrequencytarget.md)
- [SetShapeFiltVolQ](https://docs.xbox.com/zh-CN/reference/audio/shapefiltvolcontext/functions/setshapefiltvolq.md)
