aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALc.c23
-rw-r--r--Alc/dsound.c1
2 files changed, 23 insertions, 1 deletions
diff --git a/Alc/ALc.c b/Alc/ALc.c
index e3974939..0b3fdbbf 100644
--- a/Alc/ALc.c
+++ b/Alc/ALc.c
@@ -20,6 +20,29 @@
#include "config.h"
+#ifdef HAVE_MMDEVAPI
+#define INITGUID
+#include <mmdeviceapi.h>
+#include <audioclient.h>
+#include <cguid.h>
+#include <mmreg.h>
+#ifndef _WAVEFORMATEXTENSIBLE_
+#include <ks.h>
+#include <ksmedia.h>
+#endif
+#endif
+
+#ifdef HAVE_DSOUND
+#define INITGUID
+#include <dsound.h>
+#include <cguid.h>
+#include <mmreg.h>
+#ifndef _WAVEFORMATEXTENSIBLE_
+#include <ks.h>
+#include <ksmedia.h>
+#endif
+#endif
+
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
diff --git a/Alc/dsound.c b/Alc/dsound.c
index a521ad65..ca39d193 100644
--- a/Alc/dsound.c
+++ b/Alc/dsound.c
@@ -21,7 +21,6 @@
#include "config.h"
#define _WIN32_WINNT 0x0500
-#define INITGUID
#include <stdlib.h>
#include <stdio.h>
#include <memory.h>