Skip to main content

SHAPE_SRC_CONTEXT

The Sample Rate Convertor (SRC) context.

Syntax

Members

timestamp
Type: UINT32
Read: Time stamp for the completion of context processing. blocksToSkip
Type: UINT32
Write: Number of XMA blocks to skip when starting. internalSaturate
Type: UINT32
Read: 1 if SRC is saturated; 0 otherwise. mixBufPeakMag
Type: UINT32
Read: Peak magnitude of the left (or mono) output mix buffer. peakMag
Type: UINT32
Read: Peak magnitude of the left (or mono) channel. samplingIncrement
Type: UINT32
Read/Write: Start value of the sampling increment. reserved0
Type: UINT32
Reserved. cmd
Type: UINT32
Read/Write: A member of the SHAPE_SRC_COMMAND_TYPE enumeration. mixBufPeakMag2
Type: UINT32
Read: Peak magnitude of the right (or second) output mix buffer. peakMag2
Type: UINT32
Read: Peak magnitude of the right (or second) channel. sampleCount
Type: UINT32
Read: The number of audio samples processed since playback started. samplePointer
Type: UINT32
Read/Write: Pointer to the current XMA/PCM input sample. reserved1
Type: UINT32
Reserved. samplingIncrementTarget
Type: UINT32
Read/Write: Target or end value of the sampling increment. reserved2
Type: UINT32
Reserved. reserved
Type: UINT32[3]
Reserved.

Remarks

This structure contains the context for the SRC block. The SRC performs sample rate conversion and pitch shifting. Members that are marked as Read are written by the Audio Control Processor (ACP) library and should only be read by your application. Members that are marked as Write are set by your application and are not changed by the ACP library. Members that are marked as Read/Write are set by your application but can be changed by the ACP library. 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

Conceptual documentation

See also

ShapeSrcContext
Last modified on August 20, 2026