> ## 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-TW/reference/audio/shapefiltvolcontext/structs/shape_filtvol_context.md)\*

指向 [SHAPE\_FILTVOL\_CONTEXT](https://docs.xbox.com/zh-TW/reference/audio/shapefiltvolcontext/structs/shape_filtvol_context.md) 物件的指標。

*frequency*   \
類型：float

轉角頻率。必須介於 0-7999 Hz 的範圍內。

### 傳回值

類型：HRESULT

HRESULT 成功或錯誤碼。

## 備註

濾波器/音量 (FLTVOL) 區塊是以 Chamberlin 濾波器實作。若要取得目前的轉角頻率，請使用 [GetShapeFiltVolFrequency](https://docs.xbox.com/zh-TW/reference/audio/shapefiltvolcontext/functions/getshapefiltvolfrequency.md)。

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

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

## 需求

**標頭：** shapefiltvolcontext.h

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

## 另請參閱

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


## Related topics

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