+/* GUID SubFormat IDs */
+/* We need both b/c const variables are not compile-time constants in C, giving
+ * us an error if we use the const GUID in an enum */
+
+#ifndef _KSDATAFORMAT_SUBTYPE_PCM_
+#define _KSDATAFORMAT_SUBTYPE_PCM_ {0x00000001, 0x0000, 0x0010, {0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}}
+static const GUID VLC_KSDATAFORMAT_SUBTYPE_PCM = {0xE923AABF, 0xCB58, 0x4471, {0xA1, 0x19, 0xFF, 0xFA, 0x01, 0xE4, 0xCE, 0x62}};
+#define KSDATAFORMAT_SUBTYPE_PCM VLC_KSDATAFORMAT_SUBTYPE_PCM
+#endif
+
+#ifndef _KSDATAFORMAT_SUBTYPE_UNKNOWN_
+#define _KSDATAFORMAT_SUBTYPE_UNKNOWN_ {0x00000000, 0x0000, 0x0000, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}}
+static const GUID VLC_KSDATAFORMAT_SUBTYPE_UNKNOWN = {0x00000000, 0x0000, 0x0000, {0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00}};
+#define KSDATAFORMAT_SUBTYPE_UNKNOWN VLC_KSDATAFORMAT_SUBTYPE_UNKNOWN
+#endif
+
+/* Microsoft speaker definitions */
+#define WAVE_SPEAKER_FRONT_LEFT 0x1
+#define WAVE_SPEAKER_FRONT_RIGHT 0x2
+#define WAVE_SPEAKER_FRONT_CENTER 0x4
+#define WAVE_SPEAKER_LOW_FREQUENCY 0x8
+#define WAVE_SPEAKER_BACK_LEFT 0x10
+#define WAVE_SPEAKER_BACK_RIGHT 0x20
+#define WAVE_SPEAKER_FRONT_LEFT_OF_CENTER 0x40
+#define WAVE_SPEAKER_FRONT_RIGHT_OF_CENTER 0x80
+#define WAVE_SPEAKER_BACK_CENTER 0x100
+#define WAVE_SPEAKER_SIDE_LEFT 0x200
+#define WAVE_SPEAKER_SIDE_RIGHT 0x400
+#define WAVE_SPEAKER_TOP_CENTER 0x800
+#define WAVE_SPEAKER_TOP_FRONT_LEFT 0x1000
+#define WAVE_SPEAKER_TOP_FRONT_CENTER 0x2000
+#define WAVE_SPEAKER_TOP_FRONT_RIGHT 0x4000
+#define WAVE_SPEAKER_TOP_BACK_LEFT 0x8000
+#define WAVE_SPEAKER_TOP_BACK_CENTER 0x10000
+#define WAVE_SPEAKER_TOP_BACK_RIGHT 0x20000
+#define WAVE_SPEAKER_RESERVED 0x80000000
+