Skip to main content

GetShapeDmaBytesPerFrame

Gets the number of bytes per frame.

Syntax

Parameters

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

Return value

Type: UINT32 Number of bytes per frame.

Remarks

This function calculates the total number of bytes in a complete frame by multiplying the number of channels by the number of samples per frame and by the number of bytes per sample. In the Direct Memory Access (DMA) buffer structure, the driver can specify the maximum number of bytes per frame. When transmitting data, the host controller splits the data buffer into packets of this size.

Requirements

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

See also

SHAPE_DMA_CONTEXT
DMA
ShapeDmaContext
Last modified on August 20, 2026