X3DAudioCalculate

Calculates DSP settings with respect to 3D parameters.

void __stdcall X3DAudioCalculate(
  X3DAUDIO_HANDLE Instance,
  X3DAUDIO_LISTENER *pListener,
  X3DAUDIO_EMITTER *pEmitter,
  UINT32 Flags,
  X3DAUDIO_DSP_SETTINGS *pDSPSettings
);

Parameters

Instance
[in] Handle to an instance of X3DAudio, returned by calling X3DAudioInitialize.
pListener
[in] Pointer to an X3DAUDIO_LISTENER representing the point of reception.
pEmitter
[in] Pointer to an X3DAUDIO_EMITTER representing the sound source.
Flags
[in] Flags used to control which DSP settings are calculated:
Value Description
X3DAUDIO_CALCULATE_MATRIX Enable matrix coefficient table calculation.
X3DAUDIO_CALCULATE_DELAY Enable delay time array calculation (stereo only).
X3DAUDIO_CALCULATE_LPF_DIRECT Enable LPF direct-path coefficient calculation.
X3DAUDIO_CALCULATE_LPF_REVERB Enable LPF reverb-path coefficient calculation.
X3DAUDIO_CALCULATE_REVERB Enable reverb send level calculation.
X3DAUDIO_CALCULATE_DOPPLER Enable doppler shift factor calculation.
pDSPSettings
[in, out] Pointer to an X3DAUDIO_DSP_SETTINGS structure that receives the calculation results.

Return Values

None.

Requirements

Header: Declared in X3daudio.h.

Import Library: Use X3daudio.lib.

See Also

X3DAudio Functions