Skip to main content

SetShapeSrcCommand

Sets the Sample Rate Convertor (SRC) command.

Syntax

Parameters

context   _Inout_
Type: SHAPE_SRC_CONTEXT*
Pointer to a SHAPE_SRC_CONTEXT object. command   
Type: SHAPE_SRC_COMMAND_TYPE
A member of the SHAPE_SRC_COMMAND_TYPE enumeration.

Return value

Type: HRESULT HRESULT success or error code.

Remarks

The three SRC commands are as follows. For more details, see SHAPE_SRC_COMMAND_TYPE. To get the current SRC command, use GetShapeSrcCommandType. SRC commands can be reported as blocked. For more information, see the Blocked commands section of 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