- 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
This commit is contained in:
Alfred Reynolds 2015-06-24 10:56:51 -07:00
parent e4e4e1b82a
commit cbbdd27ad3
1 changed files with 6 additions and 0 deletions

View File

@ -65,6 +65,11 @@
The XAudio2 implementation available in the Windows 8 SDK targets Windows 8 and newer. The XAudio2 implementation available in the Windows 8 SDK targets Windows 8 and newer.
If you want to build SDL with XAudio2 support you should install the DirectX SDK. If you want to build SDL with XAudio2 support you should install the DirectX SDK.
*/ */
/* Disable compiling in the XAudio2 support pending fixes to dynamically load the XAudio2
entry points so we can be robust to user configuration. Also needs to be fixed to build
with the Windows 10 SDK.
*/
#if 0 /* See comment above */
#include <dxsdkver.h> #include <dxsdkver.h>
#if (!defined(_DXSDK_BUILD_MAJOR) || (_DXSDK_BUILD_MAJOR < 1284)) #if (!defined(_DXSDK_BUILD_MAJOR) || (_DXSDK_BUILD_MAJOR < 1284))
# pragma message("Your DirectX SDK is too old. Disabling XAudio2 support.") # pragma message("Your DirectX SDK is too old. Disabling XAudio2 support.")
@ -72,6 +77,7 @@
# define SDL_XAUDIO2_HAS_SDK 1 # define SDL_XAUDIO2_HAS_SDK 1
#endif #endif
#endif #endif
#endif /* 0 */
#ifdef SDL_XAUDIO2_HAS_SDK #ifdef SDL_XAUDIO2_HAS_SDK