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

# GetShapeFiltVolPeakMagnitude

> GetShapeFiltVolPeakMagnitude

# GetShapeFiltVolPeakMagnitude

取得峰值量級。

## 語法

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

### 參數

*context*   \_In\_\
類型: [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) 物件的指標。

### 傳回值

類型: float

峰值量級。

## 備註

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

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

## 需求

**標頭:** shapefiltvolcontext.h

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

## 另請參閱

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


## Related topics

- [ShapeFiltVolContext](https://docs.xbox.com/zh-TW/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members.md)
- [GetShapeFiltVolMixBufferPeakMagnitude](https://docs.xbox.com/zh-TW/reference/audio/shapefiltvolcontext/functions/getshapefiltvolmixbufferpeakmagnitude.md)
- [GetShapeDmaPeakMagnitude](https://docs.xbox.com/zh-TW/reference/audio/shapedmacontext/functions/getshapedmapeakmagnitude.md)
- [GetShapeEqCompPeakMagnitude](https://docs.xbox.com/zh-TW/reference/audio/shapeeqcompcontext/functions/getshapeeqcomppeakmagnitude.md)
- [GetShapeDmaMixBufferPeakMagnitude](https://docs.xbox.com/zh-TW/reference/audio/shapedmacontext/functions/getshapedmamixbufferpeakmagnitude.md)
