libao
libao copied to clipboard
Issue with 'src/ao_wmm.c'
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>