Skip to main content

GetXmaSampleRate

This function obtains the legal XBOX Media Audio (XMA) sample rate (24, 32, 44.1, or 48 KHz) that corresponds to a generic sample rate.

Syntax

Parameters

dwGeneralRate   
Type: DWORD
Generic sample rate.

Return value

Type: DWORD The sample rate.

Remarks

GetXmaSampleRate is an inline helper function. The default XMA rate for all rates above 44100 Hz is 48000 Hz. For more information about XMA2, see Overview of XMA2. For an overview of the audio architecture of XBOX One, see The sound of the future: The audio architecture in XBOX One.

Requirements

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

See also

xma2defs
Last modified on August 20, 2026