Skip to main content

SetShapeSrcPitch

Sets the pitch.

Syntax

Parameters

context   _Inout_
Type: SHAPE_SRC_CONTEXT*
Pointer to a SHAPE_SRC_CONTEXT object. pitch   
Type: float
The pitch.

Return value

Type: HRESULT HRESULT success or error code.

Remarks

The Sample Rate Convertor (SRC) block reads PCM samples and performs sample-rate conversion and pitch shifting. Pitch and pitch target values are in the range 0.0625-3.99. To get the current pitch, use GetShapeSrcPitch. 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

SetShapeSrcPitchTarget
ShapeSrcContext
Last modified on August 20, 2026