GetXmaSampleRate

Obtains the legal XMA sample rate (24, 32, 44.1 or 48Khz) corresponding to a generic sample rate.

Syntax

DWORD GetXmaSampleRate(
         DWORD dwGeneralRate
)  

Parameters

dwGeneralRate
Type: DWORD 

Generic sample rate.

Return value

Type: DWORD 

The sample rate.

Remarks

Note that the default XMA rate for all rates above 44100Hz is 48000.

This is an inline function, refer to the xma2defs.h file for the source code.

Requirements

Header: Declared in xma2defs.h.

Library: Use xaudio2.lib and acphal.lib.