#if (_WIN32_WINNT >= 0x0602 /*_WIN32_WINNT_WIN8*/) #include <xaudio2.h> // from Windows 8.0 SDK #pragma comment(lib,"xaudio2.lib") #else #include <c:\dxsdk\include\xaudio2.h> // from DirectX SDK #endiffor more information read this.
Show differencesHistory of post edits
#Actualnader
Posted 08 September 2012 - 12:46 PM
You can use something like this:
#1nader
Posted 08 September 2012 - 12:43 PM
You can use something like this:
#if (_WIN32_WINNT >= 0x0602 /*_WIN32_WINNT_WIN8*/) #include <xaudio2.h> // from Windows 8.0 SDK #pragma comment(lib,"xaudio2.lib") #else #include <c:\dxsdk\include\xaudio2.h> \\ from DirectX SDK #endiffor more information read this.