Inline function that converts I3DL2 (Interactive 3D Audio Rendering Guidelines Level 2.0) parameters to native XAudio2 parameters.
void ReverbConvertI3DL2ToNative(
const XAUDIO2FX_REVERB_I3DL2_PARAMETERS *pI3DL2,
XAUDIO2FX_REVERB_PARAMETERS *pNative,
bool sevenDotOneReverb
)
pI3DL2
Type: XAUDIO2FX_REVERB_I3DL2_PARAMETERS *
[in] Pointer to a XAUDIO2FX_REVERB_I3DL2_PARAMETERS structure containing the I3DL2 parameters to convert. There are many preset values defined for the XAUDIO2FX_REVERB_I3DL2_PARAMETERS structure, and listed in the Remarks section for this structure.
pNative
Type: XAUDIO2FX_REVERB_PARAMETERS *
[out] Pointer to a XAUDIO2FX_REVERB_PARAMETERS structure that will receive the native parameters that are equivalent to the I3DL2 parameters.
sevenDotOneReverb
Type: bool
sevenDotOneReverb is unique to Xbox One, and applies only to 7.1 surround sound.
When this is set to true, the rear delay value is initialized to the default 7.1 length: XAUDIO2FX_REVERB_DEFAULT_7POINT1_REAR_DELAY. When false, the rear delay is initialized to previous version’s default length: XAUDIO2FX_REVERB_DEFAULT_REAR_DELAY.
Refer to the remarks for the XAUDIO2FX_REVERB_PARAMETERS structure for a table of reverb constants.
Header: Declared in xaudio2fx.h.
Library: Use xaudio2.lib.