Skip to main content

GetShapeXmaNumChannels

Gets the number of channels.

Syntax

Parameters

context   _In_
Type: SHAPE_XMA_CONTEXT*
Pointer to a SHAPE_XMA_CONTEXT object.

Return value

Type: UINT32 Number of channels; either 1 (mono) or 2 (stereo).

Remarks

This function returns 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 set the number of channels, use SetShapeXmaNumChannels. 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