[SDL] MinGW and XAudio support

Sik the hedgehog sik.the.hedgehog at gmail.com
Fri Mar 1 06:49:59 PST 2013


In SDL_config_windows.h the following lines are present:

#ifndef __GNUC__
#define SDL_AUDIO_DRIVER_XAUDIO2        1
#endif

If I recall correctly, the logic behind that #ifndef is that MinGW
doesn't include XAudio, so it's never even considered. However, I
installed MinGW-w64 as a cross compiler, and these files are present
in both /usr/i686-w64-mingw32/lib and /usr/x86_64-w64-mingw32/lib:

libxaudio2_0.a
libxaudio2_1.a
libxaudio2_2.a
libxaudio2_3.a
libxaudio2_4.a
libxaudio2_5.a
libxaudio2_6.a
libxaudio2_7.a
libxaudio.a
libxaudiod2_7.a
libxaudiod.a

That seems to imply XAudio is indeed included. However, XAudio2.h
seems to be completely missing from /usr/i686-w64-mingw32/include and
/usr/x86_64-w64-mingw32/include (which makes the situation odd - is
XAudio there or not after all?).

Anyway, should that #ifndef still be there?



More information about the SDL mailing list