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

Gets the peak magnitude.

## Syntax

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

### Parameters

*context*   \_In\_\
Type: [SHAPE\_FILTVOL\_CONTEXT](/reference/audio/shapefiltvolcontext/structs/shape_filtvol_context)\*

Pointer to a [SHAPE\_FILTVOL\_CONTEXT](/reference/audio/shapefiltvolcontext/structs/shape_filtvol_context) object.

### Return value

Type: float

The peak magnitude.

## Remarks

Each hardware block maintains two four-bit numbers that represent the magnitude of the output of the hardware block. The magnitude is calculated by determining the peak output during the audio frame and by counting the leading zeros of the absolute value of the peak. One four-bit number is maintained with the persistent peak magnitude, and the other is reset by the hardware for every audio frame.

For more information, see [Overflow, magnitude, and saturation](/build/console-features/audio/overviews/shape-overview#ID4ELAAC) in [Overview of SHAPE](/build/console-features/audio/overviews/shape-overview).

## Requirements

**Header:** shapefiltvolcontext.h

**Supported platforms:** XBOX One family consoles and XBOX Series consoles

## See also

[ShapeFiltVolContext](/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members)


## Related topics

- [ShapeFiltVolContext](/reference/audio/shapefiltvolcontext/shapefiltvolcontext_members.md)
- [GetShapeFiltVolMixBufferPeakMagnitude](/reference/audio/shapefiltvolcontext/functions/getshapefiltvolmixbufferpeakmagnitude.md)
- [GetShapeDmaPeakMagnitude](/reference/audio/shapedmacontext/functions/getshapedmapeakmagnitude.md)
- [GetShapeEqCompPeakMagnitude](/reference/audio/shapeeqcompcontext/functions/getshapeeqcomppeakmagnitude.md)
- [GetShapeDmaMixBufferPeakMagnitude](/reference/audio/shapedmacontext/functions/getshapedmamixbufferpeakmagnitude.md)
