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

# GetShapeFiltVolPeakMagnitude

> GetShapeFiltVolPeakMagnitude

# GetShapeFiltVolPeakMagnitude

取得峰值量級。

## 語法

```cpp theme={null}
float GetShapeFiltVolPeakMagnitude(  
         const SHAPE_FILTVOL_CONTEXT* context  
)  
```

### 參數

*context*   \_In\_\
類型: [SHAPE\_FILTVOL\_CONTEXT](/zh-TW/reference/audio/shapefiltvolcontext/structs/shape_filtvol_context)\*

指向 [SHAPE\_FILTVOL\_CONTEXT](/zh-TW/reference/audio/shapefiltvolcontext/structs/shape_filtvol_context) 物件的指標。

### 傳回值

類型: float

峰值量級。

## 備註

每個硬體區塊都會維護兩個 4 位元數字,代表硬體區塊輸出的量級。量級的計算方式是判斷音訊框架期間的峰值輸出,並計算峰值絕對值的前導零數目。其中一個 4 位元數字會維護持續保留的峰值量級,另一個則會由硬體在每個音訊框架重設。

如需詳細資訊,請參閱 [SHAPE 概觀](/zh-TW/build/console-features/audio/overviews/shape-overview)中的[溢位、量級與飽和](/zh-TW/build/console-features/audio/overviews/shape-overview#ID4ELAAC)。

## 需求

**標頭:** shapefiltvolcontext.h

**支援的平台:** XBOX One 系列主機和 XBOX Series 主機

## 另請參閱

[ShapeFiltVolContext](/zh-TW/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members)


## Related topics

- [GetShapeFiltVolPeakMagnitude](/reference/audio/shapefiltvolcontext/functions/getshapefiltvolpeakmagnitude.md)
- [ShapeFiltVolContext](/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members.md)
