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

# GetShapeSrcMixBufferPeakMagnitude0

> GetShapeSrcMixBufferPeakMagnitude0

Gets the peak magnitude of the output mix buffer for the left or mono channel.

## Syntax

```cpp theme={null}
float GetShapeSrcMixBufferPeakMagnitude0(  
         const SHAPE_SRC_CONTEXT* context  
)  
```

### Parameters

*context*   \
Type: [SHAPE\_SRC\_CONTEXT](https://docs.xbox.com/reference/audio/shapesrccontext/structs/shape_src_context.md)\*

Pointer to a [SHAPE\_SRC\_CONTEXT](https://docs.xbox.com/reference/audio/shapesrccontext/structs/shape_src_context.md) object.

### Return value

Type: float

The peak magnitude.

## Remarks

In addition to monitoring the peak magnitude of each individual hardware block, the peak magnitude of the mix buffers is also maintained. When the output of a hardware block is added to a mix buffer, the peak magnitude is calculated in the same manner: by counting the leading zeros. Each hardware block state maintains an additional pair of four-bit peak-magnitude values. These values represent the peak magnitude of the mix buffer after the output of the hardware block has been accumulated into the mix buffer. One four-bit number represents the ongoing, persistent peak magnitude; the other is updated for every audio frame. The peak-magnitude values are saved in the context of the Scalable Hardware Audio Processing Engine (SHAPE) blocks, even though what's being represented is the mix buffer state.

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

## Requirements

**Header:** shapesrccontext.h

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

## See also

[ShapeSrcContext](https://docs.xbox.com/reference/audio/shapesrccontext/shapesrccontext_members.md)


## Related topics

- [ShapeSrcContext](https://docs.xbox.com/reference/audio/shapesrccontext/shapesrccontext_members.md)
- [GetShapeSrcMixBufferPeakMagnitude1](https://docs.xbox.com/reference/audio/shapesrccontext/functions/getshapesrcmixbufferpeakmagnitude1.md)
- [GetShapeSrcPeakMagnitude0](https://docs.xbox.com/reference/audio/shapesrccontext/functions/getshapesrcpeakmagnitude0.md)
- [GetShapeDmaMixBufferPeakMagnitude](https://docs.xbox.com/reference/audio/shapedmacontext/functions/getshapedmamixbufferpeakmagnitude.md)
- [GetShapeEqCompMixBufferPeakMagnitude](https://docs.xbox.com/reference/audio/shapeeqcompcontext/functions/getshapeeqcompmixbufferpeakmagnitude.md)
