X3DAudioInitialize
Sets all global 3D audio constants.
void __stdcall X3DAudioInitialize(
UINT32 SpeakerChannelMask,
FLOAT32 SpeedOfSound,
X3DAUDIO_HANDLE Instance
);
Parameters
- SpeakerChannelMask
- [in] Assignment of channels to speaker positions. XACT currently only supports stereo and 5.1 speaker arrangements. The following #define values in X3DAudio.h can be used to easily set up these configurations:
SPEAKER_STEREO |
Stereo Sound (Equivalent to SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT) |
SPEAKER_5POINT1 |
5.1 Sound (Equivalent to SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT) |
- SpeedOfSound
- [in] Speed of sound, in user-defined world units per second. This value is used only for doppler calculations and must be greater than or equal to FLT_MIN.
- Instance
- [out] Handle to this instance of X3DAudio.
Return Values
None.
Requirements
Header: Declared in X3daudio.h.
Import Library:
Use X3daudio.lib.
See Also
X3DAudio Functions