SDL
authorAlfred Reynolds <alfred@valvesoftware.com>
Wed, 24 Jun 2015 10:56:51 -0700
changeset 9778e7de5f41bb79
parent 9777 7408fe91d07b
child 9779 49b5a975a238
SDL
- disable compiling in XAudio2 support. We both need the DX SDK to make this code plus we need to work out the runtime dependency problem this code bring in on windows (needing the DX runtime installed).

CR: SamL
src/audio/xaudio2/SDL_xaudio2.c
     1.1 --- a/src/audio/xaudio2/SDL_xaudio2.c	Wed Jun 24 10:56:37 2015 -0700
     1.2 +++ b/src/audio/xaudio2/SDL_xaudio2.c	Wed Jun 24 10:56:51 2015 -0700
     1.3 @@ -65,6 +65,11 @@
     1.4     The XAudio2 implementation available in the Windows 8 SDK targets Windows 8 and newer.
     1.5     If you want to build SDL with XAudio2 support you should install the DirectX SDK.
     1.6   */
     1.7 +/* Disable compiling in the XAudio2 support pending fixes to dynamically load the XAudio2
     1.8 +   entry points so we can be robust to user configuration. Also needs to be fixed to build
     1.9 +   with the Windows 10 SDK.
    1.10 +*/
    1.11 +#if 0 /* See comment above */
    1.12  #include <dxsdkver.h>
    1.13  #if (!defined(_DXSDK_BUILD_MAJOR) || (_DXSDK_BUILD_MAJOR < 1284))
    1.14  #  pragma message("Your DirectX SDK is too old. Disabling XAudio2 support.")
    1.15 @@ -72,6 +77,7 @@
    1.16  #  define SDL_XAUDIO2_HAS_SDK 1
    1.17  #endif
    1.18  #endif
    1.19 +#endif /* 0 */
    1.20  
    1.21  #ifdef SDL_XAUDIO2_HAS_SDK
    1.22