Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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
  • Loading branch information
alfred-valve committed Jun 24, 2015
1 parent e4e4e1b commit cbbdd27
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/audio/xaudio2/SDL_xaudio2.c
Expand Up @@ -65,13 +65,19 @@
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.
*/
/* 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>
#if (!defined(_DXSDK_BUILD_MAJOR) || (_DXSDK_BUILD_MAJOR < 1284))
# pragma message("Your DirectX SDK is too old. Disabling XAudio2 support.")
#else
# define SDL_XAUDIO2_HAS_SDK 1
#endif
#endif
#endif /* 0 */

#ifdef SDL_XAUDIO2_HAS_SDK

Expand Down

0 comments on commit cbbdd27

Please sign in to comment.