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

# GetShapeEqCompPeakMagnitude

> GetShapeEqCompPeakMagnitude

# GetShapeEqCompPeakMagnitude

获取峰值幅度。

## 语法

```cpp theme={null}
float GetShapeEqCompPeakMagnitude(  
         const SHAPE_EQCOMP_CONTEXT* context  
)  
```

### 参数

*context*   \_In\_\
类型：[SHAPE\_EQCOMP\_CONTEXT\*](/reference/audio/shapeeqcompcontext/structs/shape_eqcomp_context)

指向 `SHAPE_EQCOMP_CONTEXT` 对象的指针。

### 返回值

类型：float

峰值幅度。

## 备注

每个硬件模块维护两个 4 位数值，用于表示硬件模块输出的幅度。幅度是通过确定音频帧期间的峰值输出并统计该峰值绝对值的前导零数量来计算的。其中一个 4 位数值保持持续的峰值幅度，另一个由硬件每个音频帧重置。

有关详细信息，请参阅 [SHAPE 概述](/build/console-features/audio/overviews/shape-overview) 中的 [溢出、幅度和饱和](/build/console-features/audio/overviews/shape-overview#ID4ELAAC)。

## 要求

**头文件：** shapeeqcompcontext.h

**支持的平台：** XBOX One 系列主机和 XBOX Series 主机

## 另请参阅

[GetShapeEqCompMixBufferPeakMagnitude](/reference/audio/shapeeqcompcontext/functions/getshapeeqcompmixbufferpeakmagnitude)\
[ShapeEqCompContext](/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members)


## Related topics

- [GetShapeEqCompMixBufferPeakMagnitude](/zh-CN/reference/audio/shapeeqcompcontext/functions/getshapeeqcompmixbufferpeakmagnitude.md)
- [GetShapeEqCompInternalSaturate](/zh-CN/reference/audio/shapeeqcompcontext/functions/getshapeeqcompinternalsaturate.md)
- [ShapeEqCompContext](/zh-CN/reference/audio/shapeeqcompcontext/shapeeqcompcontext_members.md)
- [GetShapeDmaPeakMagnitude](/zh-CN/reference/audio/shapedmacontext/functions/getshapedmapeakmagnitude.md)
- [GetShapeFiltVolPeakMagnitude](/zh-CN/reference/audio/shapefiltvolcontext/functions/getshapefiltvolpeakmagnitude.md)
