Skip to content

Issue with 'src/ao_wmm.c' #12

Open
@gvanem

Description

@gvanem

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>

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions