RetroArch
xaudio.h
Go to the documentation of this file.
1 /* RetroArch - A frontend for libretro.
2  * Copyright (C) 2018 - Krzysztof HaƂadyn
3  *
4  * RetroArch is free software: you can redistribute it and/or modify it under the terms
5  * of the GNU General Public License as published by the Free Software Found-
6  * ation, either version 3 of the License, or (at your option) any later version.
7  *
8  * RetroArch is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
9  * without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
10  * PURPOSE. See the GNU General Public License for more details.
11  *
12  * You should have received a copy of the GNU General Public License along with RetroArch.
13  * If not, see <http://www.gnu.org/licenses/>.
14  */
15 
16 #if (_WIN32_WINNT >= 0x0602 /*_WIN32_WINNT_WIN8*/)
17 /* XAudio 2.7 it part of the old DirectX SDKs. XAudio 2.8+ is part of the
18  * Windows OS itself (starting from Windows 8). Since UWP lets you access
19  * only libraries that are built-in to the OS, the headers had to be
20  * upgraded to the newer version to get audio support working. */
21 #include "xaudio29.h"
22 #else
23 /* The old version still has to be there since XAudio 2.8 is not available
24  * on Windows 7 and earlier */
25 #include "xaudio27.h"
26 #endif