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

# SetShapeFiltVolInputHeadroom

> SetShapeFiltVolInputHeadroom

# SetShapeFiltVolInputHeadroom

設定輸入動態餘裕 (headroom)。

## 語法

```cpp theme={null}
HRESULT SetShapeFiltVolInputHeadroom(  
         SHAPE_FILTVOL_CONTEXT* context,  
         SHAPE_FILTER_HEADROOM inputHeadroom  
)  
```

### 參數

*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) 物件的指標。

*inputHeadroom*   \
類型：[SHAPE\_FILTER\_HEADROOM](/zh-TW/reference/audio/shapefiltvolcontext/enums/shape_filter_headroom)

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

### 傳回值

類型：HRESULT

HRESULT 成功或錯誤碼。

## 備註

狀態變數濾波器本質上可能會產生共振，導致中間值超過 1.0 (或 -1.0)。為了減輕中間值飽和所造成的問題，FLTVOL 區塊具有可程式化的動態餘裕縮放量，此縮放會套用至傳入的訊號，然後在輸出時加以補償。

如需詳細資訊，請參閱 [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 主機

## 另請參閱

[GetShapeFiltVolInputHeadroom](/zh-TW/reference/audio/shapefiltvolcontext/functions/getshapefiltvolinputheadroom)\
[ShapeFiltVolContext](/zh-TW/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members)


## Related topics

- [SetShapeFiltVolInputHeadroom](/es/reference/audio/shapefiltvolcontext/functions/setshapefiltvolinputheadroom.md)
- [GetShapeFiltVolInputHeadroom](/reference/audio/shapefiltvolcontext/functions/getshapefiltvolinputheadroom.md)
