Skip to main content

GetShapeDmaNumBytes

Gets the number of bytes in the audio buffer.

Syntax

Parameters

context   _In_
Type: SHAPE_DMA_CONTEXT*
Pointer to a SHAPE_DMA_CONTEXT structure.

Return value

Type: UINT32 Number of bytes in the audio buffer.

Remarks

The full size of the Direct Memory Access (DMA) buffer (in bytes) is calculated as follows:
DMA buffers are circular and contain de-interleaved samples in 128-sample blocks. Each sample is either a 32-bit floating-point value or a 32-bit signed integer. For more information about DMA, see the DMA section of Overview of SHAPE.

Requirements

Header: shapedmacontext.h Supported platforms: XBOX One family consoles and XBOX Series consoles

See also

ShapeDmaContext
Last modified on August 20, 2026