Skip to main content

SetShapeXmaSampleRate(SHAPE_XMA_CONTEXT*, SHAPE_XMA_SAMPLE_RATE)

Sets the sample rate.

Syntax

Parameters

context   _Inout_
Type: SHAPE_XMA_CONTEXT*
Pointer to a SHAPE_XMA_CONTEXT object. sampleRate   
Type: SHAPE_XMA_SAMPLE_RATE
A member of the SHAPE_XMA_SAMPLE_RATE enumeration.

Return value

Type: HRESULT HRESULT success or error code.

Remarks

To set the sample rate by specifying an integer, use SetShapeXmaSampleRate(SHAPE_XMA_CONTEXT*, UINT32). To get the current sample rate, use GetShapeXmaSampleRate. For more information, see the XMA section of Overview of SHAPE.

Requirements

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

See also

ShapeXmaContext
Last modified on August 20, 2026