[CMAKE]
[reactos.git] / include / ddk / dmusicks.h
index 27cd6ac..c5586e4 100644 (file)
@@ -1,6 +1,8 @@
 #ifndef _DMUSICKS_
 #define _DMUSICKS_
 
+#include <dmusprop.h>
+
 #define DONT_HOLD_FOR_SEQUENCING 0x8000000000000000
 
 #ifndef REFERENCE_TIME
@@ -230,4 +232,35 @@ typedef IMiniportDMus *PMINIPORTDMUS;
     IN PMASTERCLOCK MasterClock,        \
     OUT PULONGLONG SchedulePreFetch)
 
+
+#define STATIC_KSAUDFNAME_DMUSIC_MPU_OUT\
+    0xA4DF0EB5, 0xBAC9, 0x11d2, {0xB7, 0xA8, 0x00, 0x60, 0x08, 0x33, 0x16, 0xC1}
+DEFINE_GUIDSTRUCT("A4DF0EB5-BAC9-11d2-B7A8-0060083316C1", KSAUDFNAME_DMUSIC_MPU_OUT);
+#define KSAUDFNAME_DMUSIC_MPU_OUT DEFINE_GUIDNAMED(KSAUDFNAME_DMUSIC_MPU_OUT)
+
+#define STATIC_KSAUDFNAME_DMUSIC_MPU_IN\
+    0xB2EC0A7D, 0xBAC9, 0x11d2, {0xB7, 0xA8, 0x00, 0x60, 0x08, 0x33, 0x16, 0xC1}
+DEFINE_GUIDSTRUCT("B2EC0A7D-BAC9-11d2-B7A8-0060083316C1", KSAUDFNAME_DMUSIC_MPU_IN);
+#define KSAUDFNAME_DMUSIC_MPU_IN DEFINE_GUIDNAMED(KSAUDFNAME_DMUSIC_MPU_IN)
+
+#define STATIC_IID_IMXF\
+    0xc096df9e, 0xfb09, 0x11d1, {0x81, 0xb0, 0x00, 0x60, 0x08, 0x33, 0x16, 0xc1}
+DEFINE_GUIDSTRUCT("c096df9e-fb09-11d1-81b0-0060083316c1", IID_IMXF);
+#define IID_IMXF DEFINE_GUIDNAMED(IID_IMXF)
+
+#define DMUS_KEF_EVENT_COMPLETE     0x0000
+#define DMUS_KEF_EVENT_INCOMPLETE   0x0001
+#define DMUS_KEF_PACKAGE_EVENT      0x0002
+#define kBytePositionNone   (~(ULONGLONG)0)
+
+#define SHORT_EVT(evt)       ((evt)->cbEvent <= sizeof(PBYTE))
+#define PACKAGE_EVT(evt)     ((evt)->usFlags & DMUS_KEF_PACKAGE_EVENT)
+#define INCOMPLETE_EVT(evt)  ((evt)->usFlags & DMUS_KEF_EVENT_INCOMPLETE)
+#define COMPLETE_EVT(evt)    (((evt)->usFlags & DMUS_KEF_EVENT_INCOMPLETE) == 0)
+
+#define SET_INCOMPLETE_EVT(evt) ((evt)->usFlags |= DMUS_KEF_EVENT_INCOMPLETE)
+#define SET_COMPLETE_EVT(evt)   ((evt)->usFlags &= (~DMUS_KEF_EVENT_INCOMPLETE))
+#define SET_PACKAGE_EVT(evt)    ((evt)->usFlags |= DMUS_KEF_PACKAGE_EVENT)
+#define CLEAR_PACKAGE_EVT(evt)  ((evt)->usFlags &= (~DMUS_KEF_PACKAGE_EVENT))
+
 #endif /* _DMUSICKS_ */