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

# GetShapeFiltVolMixBufferPeakMagnitude

> GetShapeFiltVolMixBufferPeakMagnitude

# GetShapeFiltVolMixBufferPeakMagnitude

取得輸出混音緩衝區的峰值量級。

## 語法

```cpp theme={null}
float GetShapeFiltVolMixBufferPeakMagnitude(  
         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) 區塊的內容中。

如需詳細資訊,請參閱 [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)
- [GetShapeFiltVolPeakMagnitude](https://docs.xbox.com/zh-TW/reference/audio/shapefiltvolcontext/functions/getshapefiltvolpeakmagnitude.md)
- [GetShapeDmaMixBufferPeakMagnitude](https://docs.xbox.com/zh-TW/reference/audio/shapedmacontext/functions/getshapedmamixbufferpeakmagnitude.md)
- [GetShapeEqCompMixBufferPeakMagnitude](https://docs.xbox.com/zh-TW/reference/audio/shapeeqcompcontext/functions/getshapeeqcompmixbufferpeakmagnitude.md)
- [GetShapeSrcMixBufferPeakMagnitude0](https://docs.xbox.com/zh-TW/reference/audio/shapesrccontext/functions/getshapesrcmixbufferpeakmagnitude0.md)
