Skip to main content

GetShapeSrcSampleCount

Gets the sample count.

Syntax

Parameters

context   _In_
Type: SHAPE_SRC_CONTEXT*
Pointer to a SHAPE_SRC_CONTEXT object.

Return value

Type: UINT32 The sample count.

Remarks

This function gets the count of audio samples processed since playback started. The count is stored in the sampleCount member of the SHAPE_SRC_CONTEXT object. For more information about the SRC, see Sample Rate Convertor (SRC) block in Overview of SHAPE.

Requirements

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

See also

ShapeSrcContext
Last modified on August 20, 2026