Skip to main content

SetShapeXmaNumChannels

Sets the number of channels.

Syntax

Parameters

context   _Inout_
Type: SHAPE_XMA_CONTEXT*
Pointer to a SHAPE_XMA_CONTEXT object. numChannels   
Type: UINT32
Number of channels; either 1 (mono) or 2 (stereo).

Return value

Type: HRESULT HRESULT success or error code.

Remarks

This function sets the actual number of channels in the context. (In the SHAPE_XMA_CONTEXT object, the numChannels member contains the values 0 [mono] or 1 [stereo].) To get the current number of channels, use GetShapeXmaNumChannels. 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