xiph / libao

Portable audio output library
GNU General Public License v2.0
73 stars 32 forks source link

Issue with 'src/ao_wmm.c' #12

Open gvanem opened 3 years ago

gvanem commented 3 years ago

When compiling src/ao_wmm.c, I get this error from the Windows-SDK header <ksmedia.h>:

f:\ProgramFiler-x86\WindowsKits\Include\10.0.19041.0\shared\ksmedia.h(18,2): error: KS.H must be included before
      KSMEDIA.H
#error KS.H must be included before KSMEDIA.H
 ^

and a bunch or errors on unknown types like KSPROPERTY etc.

The easy fix was simply:

--- a/src/ao_wmm.c 2021-03-01 10:09:39
+++ b/src/ao_wmm.c 2021-03-01 10:39:52
@@ -33,6 +33,7 @@
 #include <windows.h>
 #include <mmreg.h>
 #include <mmsystem.h>
+#include <ks.h>
 #include <ksmedia.h>

 #include <stdlib.h>