da909168afc7201bce3ec4b5dd3a57449d3d4d61
[reactos.git] / reactos / include / psdk / ksmedia.h
1 /*
2 KS Media
3 (c) Andrew Greenwood, 2007.
4
5 Please see COPYING in the top level directory for license information.
6 */
7
8 #ifndef KSMEDIA_H
9 #define KSMEDIA_H
10
11 #include <ks.h>
12
13 /*
14 KS CATEGORIES
15 */
16
17 #define EXTRACT_WAVEFORMATEX_ID(Guid)\
18 (USHORT)((Guid)->Data1)
19
20 /* Audio device (as presented by sysaudio) */
21
22 #define STATIC_KSCATEGORY_AUDIO_DEVICE \
23 0xFBF6F530L, 0x07B9, 0x11D2, {0xA7, 0x1E, 0x00, 0x00, 0xF8, 0x00, 0x47, 0x88}
24 DEFINE_GUIDSTRUCT("FBF6F530-07B9-11D2-A71E-0000F8004788", KSCATEGORY_AUDIO_DEVICE);
25 #define KSCATEGORY_AUDIO_DEVICE DEFINE_GUIDNAMED(KSCATEGORY_AUDIO_DEVICE)
26
27 /* video */
28 #define STATIC_PINNAME_VIDEO_CAPTURE \
29 0xfb6c4281, 0x353, 0x11d1, 0x90, 0x5f, 0x0, 0x0, 0xc0, 0xcc, 0x16, 0xba
30 #define STATIC_PINNAME_CAPTURE STATIC_PINNAME_VIDEO_CAPTURE
31 DEFINE_GUIDSTRUCT("FB6C4281-0353-11d1-905F-0000C0CC16BA", PINNAME_VIDEO_CAPTURE);
32 #define PINNAME_VIDEO_CAPTURE DEFINE_GUIDNAMED(PINNAME_VIDEO_CAPTURE)
33 #define PINNAME_CAPTURE PINNAME_VIDEO_CAPTURE
34
35 /* Preferred devices */
36
37 #define STATIC_KSCATEGORY_PREFERRED_WAVEOUT_DEVICE \
38 0xD6C5066EL, 0x72C1, 0x11D2, {0x97, 0x55, 0x00, 0x00, 0xF8, 0x00, 0x47, 0x88}
39 DEFINE_GUIDSTRUCT("D6C5066E-72C1-11D2-9755-0000F8004788", KSCATEGORY_PREFERRED_WAVEOUT_DEVICE);
40 #define KSCATEGORY_PREFERRED_WAVEOUT_DEVICE DEFINE_GUIDNAMED(KSCATEGORY_PREFERRED_WAVEOUT_DEVICE)
41
42 #define STATIC_KSCATEGORY_PREFERRED_WAVEIN_DEVICE \
43 0xD6C50671L, 0x72C1, 0x11D2, {0x97, 0x55, 0x00, 0x00, 0xF8, 0x00, 0x47, 0x88}
44 DEFINE_GUIDSTRUCT("D6C50671-72C1-11D2-9755-0000F8004788", KSCATEGORY_PREFERRED_WAVEIN_DEVICE);
45 #define KSCATEGORY_PREFERRED_WAVEIN_DEVICE DEFINE_GUIDNAMED(KSCATEGORY_PREFERRED_WAVEIN_DEVICE)
46
47 #define STATIC_KSCATEGORY_PREFERRED_MIDIOUT_DEVICE \
48 0xD6C50674L, 0x72C1, 0x11D2, {0x97, 0x55, 0x00, 0x00, 0xF8, 0x00, 0x47, 0x88}
49 DEFINE_GUIDSTRUCT("D6C50674-72C1-11D2-9755-0000F8004788", KSCATEGORY_PREFERRED_MIDIOUT_DEVICE);
50 #define KSCATEGORY_PREFERRED_MIDIOUT_DEVICE DEFINE_GUIDNAMED(KSCATEGORY_PREFERRED_MIDIOUT_DEVICE)
51
52
53 /* Media type categories */
54
55 #define STATIC_KSCATEGORY_AUDIO \
56 0x6994AD04L, 0x93EF, 0x11D0, {0xA3, 0xCC, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96}
57 DEFINE_GUIDSTRUCT("6994AD04-93EF-11D0-A3CC-00A0C9223196", KSCATEGORY_AUDIO);
58 #define KSCATEGORY_AUDIO DEFINE_GUIDNAMED(KSCATEGORY_AUDIO)
59
60 #define STATIC_KSCATEGORY_VIDEO \
61 0x6994AD05L, 0x93EF, 0x11D0, {0xA3, 0xCC, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96}
62 DEFINE_GUIDSTRUCT("6994AD05-93EF-11D0-A3CC-00A0C9223196", KSCATEGORY_VIDEO);
63 #define KSCATEGORY_VIDEO DEFINE_GUIDNAMED(KSCATEGORY_VIDEO)
64
65 #define STATIC_KSCATEGORY_TEXT \
66 0x6994AD06L, 0x93EF, 0x11D0, {0xA3, 0xCC, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96}
67 DEFINE_GUIDSTRUCT("6994AD06-93EF-11D0-A3CC-00A0C9223196", KSCATEGORY_TEXT);
68 #define KSCATEGORY_TEXT DEFINE_GUIDNAMED(KSCATEGORY_TEXT)
69
70 #define STATIC_KSCATEGORY_NETWORK \
71 0x67C9CC3CL, 0x69C4, 0x11D2, {0x87, 0x59, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96}
72 DEFINE_GUIDSTRUCT("67C9CC3C-69C4-11D2-8759-00A0C9223196", KSCATEGORY_NETWORK);
73 #define KSCATEGORY_NETWORK DEFINE_GUIDNAMED(KSCATEGORY_NETWORK)
74
75 #define STATIC_KSINTERFACESETID_Media \
76 0x3A13EB40L, 0x30A7, 0x11D0, {0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00}
77 DEFINE_GUIDSTRUCT("3A13EB40-30A7-11D0-A5D6-28DB04C10000", KSINTERFACESETID_Media);
78 #define KSINTERFACESETID_Media DEFINE_GUIDNAMED(KSINTERFACESETID_Media)
79
80 /* ... */
81
82 #define STATIC_KSCATEGORY_TOPOLOGY \
83 0xDDA54A40L, 0x1E4C, 0x11D1, {0xA0, 0x50, 0x40, 0x57, 0x05, 0xC1, 0x00, 0x00}
84 DEFINE_GUIDSTRUCT("DDA54A40-1E4C-11D1-A050-405705C10000", KSCATEGORY_TOPOLOGY);
85 #define KSCATEGORY_TOPOLOGY DEFINE_GUIDNAMED(KSCATEGORY_TOPOLOGY)
86
87 #define STATIC_KSCATEGORY_VIRTUAL \
88 0x3503EAC4L, 0x1F26, 0x11D1, {0x8A, 0xB0, 0x00, 0xA0, 0xC9, 0x22, 0x31, 0x96}
89 DEFINE_GUIDSTRUCT("3503EAC4-1F26-11D1-8AB0-00A0C9223196", KSCATEGORY_VIRTUAL);
90 #define KSCATEGORY_VIRTUAL DEFINE_GUIDNAMED(KSCATEGORY_VIRTUAL)
91
92 #define STATIC_KSCATEGORY_ACOUSTIC_ECHO_CANCEL \
93 0xBF963D80L, 0xC559, 0x11D0, {0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1}
94 DEFINE_GUIDSTRUCT("BF963D80-C559-11D0-8A2B-00A0C9255AC1", KSCATEGORY_ACOUSTIC_ECHO_CANCEL);
95 #define KSCATEGORY_ACOUSTIC_ECHO_CANCEL DEFINE_GUIDNAMED(KSCATEGORY_ACOUSTIC_ECHO_CANCEL)
96
97
98 /* Component-specific */
99
100 #define STATIC_KSCATEGORY_SYSAUDIO \
101 0xA7C7A5B1L, 0x5AF3, 0x11D1, {0x9C, 0xED, 0x00, 0xA0, 0x24, 0xBF, 0x04, 0x07}
102 DEFINE_GUIDSTRUCT("A7C7A5B1-5AF3-11D1-9CED-00A024BF0407", KSCATEGORY_SYSAUDIO);
103 #define KSCATEGORY_SYSAUDIO DEFINE_GUIDNAMED(KSCATEGORY_SYSAUDIO)
104
105 #define STATIC_KSCATEGORY_WDMAUD \
106 0x3E227E76L, 0x690D, 0x11D2, {0x81, 0x61, 0x00, 0x00, 0xF8, 0x77, 0x5B, 0xF1}
107 DEFINE_GUIDSTRUCT("3E227E76-690D-11D2-8161-0000F8775BF1", KSCATEGORY_WDMAUD);
108 #define KSCATEGORY_WDMAUD DEFINE_GUIDNAMED(KSCATEGORY_WDMAUD)
109
110 #define STATIC_KSCATEGORY_AUDIO_GFX \
111 0x9BAF9572L, 0x340C, 0x11D3, {0xAB, 0xDC, 0x00, 0xA0, 0xC9, 0x0A, 0xB1, 0x6F}
112 DEFINE_GUIDSTRUCT("9BAF9572-340C-11D3-ABDC-00A0C90AB16F", KSCATEGORY_AUDIO_GFX);
113 #define KSCATEGORY_AUDIO_GFX DEFINE_GUIDNAMED(KSCATEGORY_AUDIO_GFX)
114
115 #define STATIC_KSCATEGORY_AUDIO_SPLITTER \
116 0x9EA331FAL, 0xB91B, 0x45F8, {0x92, 0x85, 0xBD, 0x2B, 0xC7, 0x7A, 0xFC, 0xDE}
117 DEFINE_GUIDSTRUCT("9EA331FA-B91B-45F8-9285-BD2BC77AFCDE", KSCATEGORY_AUDIO_SPLITTER);
118 #define KSCATEGORY_AUDIO_SPLITTER DEFINE_GUIDNAMED(KSCATEGORY_AUDIO_SPLITTER)
119
120 #define STATIC_KSCATEGORY_SYNTHESIZER STATIC_KSNODETYPE_SYNTHESIZER
121 #define KSCATEGORY_SYNTHESIZER KSNODETYPE_SYNTHESIZER
122
123 #define STATIC_KSCATEGORY_DRM_DESCRAMBLE STATIC_KSNODETYPE_DRM_DESCRAMBLE
124 #define KSCATEGORY_DRM_DESCRAMBLE KSNODETYPE_DRM_DESCRAMBLE
125
126 /*
127 Nodes
128 */
129
130 #define STATIC_KSNODETYPE_ADC\
131 0x4D837FE0L, 0xC555, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
132 DEFINE_GUIDSTRUCT("4D837FE0-C555-11D0-8A2B-00A0C9255AC1", KSNODETYPE_ADC);
133 #define KSNODETYPE_ADC DEFINE_GUIDNAMED(KSNODETYPE_ADC)
134
135 #define STATIC_KSNODETYPE_AGC\
136 0xE88C9BA0L, 0xC557, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
137 DEFINE_GUIDSTRUCT("E88C9BA0-C557-11D0-8A2B-00A0C9255AC1", KSNODETYPE_AGC);
138 #define KSNODETYPE_AGC DEFINE_GUIDNAMED(KSNODETYPE_AGC)
139
140 #define STATIC_KSNODETYPE_3D_EFFECTS\
141 0x55515860L, 0xC559, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
142 DEFINE_GUIDSTRUCT("55515860-C559-11D0-8A2B-00A0C9255AC1", KSNODETYPE_3D_EFFECTS);
143 #define KSNODETYPE_3D_EFFECTS DEFINE_GUIDNAMED(KSNODETYPE_3D_EFFECTS)
144
145 #define STATIC_KSNODETYPE_SUPERMIX\
146 0xE573ADC0L, 0xC555, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
147 DEFINE_GUIDSTRUCT("E573ADC0-C555-11D0-8A2B-00A0C9255AC1", KSNODETYPE_SUPERMIX);
148 #define KSNODETYPE_SUPERMIX DEFINE_GUIDNAMED(KSNODETYPE_SUPERMIX)
149
150 #define STATIC_KSNODETYPE_SRC\
151 0x9DB7B9E0L, 0xC555, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
152 DEFINE_GUIDSTRUCT("9DB7B9E0-C555-11D0-8A2B-00A0C9255AC1", KSNODETYPE_SRC);
153 #define KSNODETYPE_SRC DEFINE_GUIDNAMED(KSNODETYPE_SRC)
154
155 #define STATIC_KSNODETYPE_DAC\
156 0x507AE360L, 0xC554, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
157 DEFINE_GUIDSTRUCT("507AE360-C554-11D0-8A2B-00A0C9255AC1", KSNODETYPE_DAC);
158 #define KSNODETYPE_DAC DEFINE_GUIDNAMED(KSNODETYPE_DAC)
159
160 #define STATIC_KSNODETYPE_SPDIF_INTERFACE\
161 DEFINE_USB_TERMINAL_GUID(0x0605)
162 DEFINE_GUIDSTRUCT("DFF21FE5-F70F-11D0-B917-00A0C9223196", KSNODETYPE_SPDIF_INTERFACE);
163 #define KSNODETYPE_SPDIF_INTERFACE DEFINE_GUIDNAMED(KSNODETYPE_SPDIF_INTERFACE)
164
165 #define STATIC_KSNODETYPE_MICROPHONE\
166 DEFINE_USB_TERMINAL_GUID(0x0201)
167 DEFINE_GUIDSTRUCT("DFF21BE1-F70F-11D0-B917-00A0C9223196", KSNODETYPE_MICROPHONE);
168 #define KSNODETYPE_MICROPHONE DEFINE_GUIDNAMED(KSNODETYPE_MICROPHONE)
169
170 #define STATIC_KSNODETYPE_CD_PLAYER\
171 DEFINE_USB_TERMINAL_GUID(0x0703)
172 DEFINE_GUIDSTRUCT("DFF220E3-F70F-11D0-B917-00A0C9223196", KSNODETYPE_CD_PLAYER);
173 #define KSNODETYPE_CD_PLAYER DEFINE_GUIDNAMED(KSNODETYPE_CD_PLAYER)
174
175 #define STATIC_KSNODETYPE_CHORUS\
176 0x20173F20L, 0xC559, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
177 DEFINE_GUIDSTRUCT("20173F20-C559-11D0-8A2B-00A0C9255AC1", KSNODETYPE_CHORUS);
178 #define KSNODETYPE_CHORUS DEFINE_GUIDNAMED(KSNODETYPE_CHORUS)
179
180 #define STATIC_KSNODETYPE_REVERB\
181 0xEF0328E0L, 0xC558, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
182 DEFINE_GUIDSTRUCT("EF0328E0-C558-11D0-8A2B-00A0C9255AC1", KSNODETYPE_REVERB);
183 #define KSNODETYPE_REVERB DEFINE_GUIDNAMED(KSNODETYPE_REVERB)
184
185
186 #define STATIC_KSNODETYPE_LINE_CONNECTOR\
187 DEFINE_USB_TERMINAL_GUID(0x0603)
188 DEFINE_GUIDSTRUCT("DFF21FE3-F70F-11D0-B917-00A0C9223196", KSNODETYPE_LINE_CONNECTOR);
189 #define KSNODETYPE_LINE_CONNECTOR DEFINE_GUIDNAMED(KSNODETYPE_LINE_CONNECTOR)
190
191 #define STATIC_KSNODETYPE_ANALOG_CONNECTOR\
192 DEFINE_USB_TERMINAL_GUID(0x601)
193 DEFINE_GUIDSTRUCT("DFF21FE1-F70F-11D0-B917-00A0C9223196", KSNODETYPE_ANALOG_CONNECTOR);
194 #define KSNODETYPE_ANALOG_CONNECTOR DEFINE_GUIDNAMED(KSNODETYPE_ANALOG_CONNECTOR)
195
196 #define STATIC_KSNODETYPE_SPEAKER\
197 DEFINE_USB_TERMINAL_GUID(0x0301)
198 DEFINE_GUIDSTRUCT("DFF21CE1-F70F-11D0-B917-00A0C9223196", KSNODETYPE_SPEAKER);
199 #define KSNODETYPE_SPEAKER DEFINE_GUIDNAMED(KSNODETYPE_SPEAKER)
200
201 #define STATIC_KSAUDFNAME_RECORDING_CONTROL\
202 0x185FEDFAL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
203 DEFINE_GUIDSTRUCT("185FEDFA-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_RECORDING_CONTROL);
204 #define KSAUDFNAME_RECORDING_CONTROL DEFINE_GUIDNAMED(KSAUDFNAME_RECORDING_CONTROL)
205
206 #define STATIC_KSNODETYPE_VOLUME\
207 0x3A5ACC00L, 0xC557, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
208 DEFINE_GUIDSTRUCT("3A5ACC00-C557-11D0-8A2B-00A0C9255AC1", KSNODETYPE_VOLUME);
209 #define KSNODETYPE_VOLUME DEFINE_GUIDNAMED(KSNODETYPE_VOLUME)
210
211 #define STATIC_KSAUDFNAME_WAVE_VOLUME\
212 0x185FEDE5L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
213 DEFINE_GUIDSTRUCT("185FEDE5-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_WAVE_VOLUME);
214 #define KSAUDFNAME_WAVE_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_WAVE_VOLUME)
215
216 #define STATIC_KSNODETYPE_MUTE\
217 0x02B223C0L, 0xC557, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
218 DEFINE_GUIDSTRUCT("02B223C0-C557-11D0-8A2B-00A0C9255AC1", KSNODETYPE_MUTE);
219 #define KSNODETYPE_MUTE DEFINE_GUIDNAMED(KSNODETYPE_MUTE)
220
221 #define STATIC_KSAUDFNAME_WAVE_MUTE\
222 0x185FEDE6L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
223 DEFINE_GUIDSTRUCT("185FEDE6-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_WAVE_MUTE);
224 #define KSAUDFNAME_WAVE_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_WAVE_MUTE)
225
226 #define STATIC_KSAUDFNAME_MIC_VOLUME\
227 0x185FEDEDL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
228 DEFINE_GUIDSTRUCT("185FEDED-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_MIC_VOLUME);
229 #define KSAUDFNAME_MIC_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_MIC_VOLUME)
230
231 #define STATIC_KSNODETYPE_SUM\
232 0xDA441A60L, 0xC556, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
233 DEFINE_GUIDSTRUCT("DA441A60-C556-11D0-8A2B-00A0C9255AC1", KSNODETYPE_SUM);
234 #define KSNODETYPE_SUM DEFINE_GUIDNAMED(KSNODETYPE_SUM)
235
236 #define STATIC_KSAUDFNAME_MASTER_VOLUME\
237 0x185FEDE3L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
238 DEFINE_GUIDSTRUCT("185FEDE3-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_MASTER_VOLUME);
239 #define KSAUDFNAME_MASTER_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_MASTER_VOLUME)
240
241 #define STATIC_KSAUDFNAME_CD_VOLUME\
242 0x185FEDE9L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
243 DEFINE_GUIDSTRUCT("185FEDE9-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_CD_VOLUME);
244 #define KSAUDFNAME_CD_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_CD_VOLUME)
245
246 #define STATIC_KSAUDFNAME_RECORDING_SOURCE\
247 0x185FEDEFL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
248 DEFINE_GUIDSTRUCT("185FEDEF-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_RECORDING_SOURCE);
249 #define KSAUDFNAME_RECORDING_SOURCE DEFINE_GUIDNAMED(KSAUDFNAME_RECORDING_SOURCE)
250
251 #define STATIC_KSAUDFNAME_LINE_IN_VOLUME\
252 0x185FEDF4L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
253 DEFINE_GUIDSTRUCT("185FEDF4-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_LINE_IN_VOLUME);
254 #define KSAUDFNAME_LINE_IN_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_LINE_IN_VOLUME)
255
256 #define STATIC_KSAUDFNAME_AUX_VOLUME\
257 0x185FEDFCL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
258 DEFINE_GUIDSTRUCT("185FEDFC-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_AUX_VOLUME);
259 #define KSAUDFNAME_AUX_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_AUX_VOLUME)
260
261 #define STATIC_KSAUDFNAME_MIC_IN_VOLUME\
262 0x185FEDF5L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
263 DEFINE_GUIDSTRUCT("185FEDF5-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_MIC_IN_VOLUME);
264 #define KSAUDFNAME_MIC_IN_VOLUME DEFINE_GUIDNAMED(KSAUDFNAME_MIC_IN_VOLUME)
265
266 #define STATIC_KSNODETYPE_LOUDNESS\
267 0x41887440L, 0xC558, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
268 DEFINE_GUIDSTRUCT("41887440-C558-11D0-8A2B-00A0C9255AC1", KSNODETYPE_LOUDNESS);
269 #define KSNODETYPE_LOUDNESS DEFINE_GUIDNAMED(KSNODETYPE_LOUDNESS)
270
271 #define STATIC_KSAUDFNAME_MICROPHONE_BOOST\
272 0x2bc31d6aL, 0x96e3, 0x11d2, 0xac, 0x4c, 0x0, 0xc0, 0x4f, 0x8e, 0xfb, 0x68
273 DEFINE_GUIDSTRUCT("2BC31D6A-96E3-11d2-AC4C-00C04F8EFB68", KSAUDFNAME_MICROPHONE_BOOST);
274 #define KSAUDFNAME_MICROPHONE_BOOST DEFINE_GUIDNAMED(KSAUDFNAME_MICROPHONE_BOOST)
275
276 #define STATIC_KSAUDFNAME_CD_MUTE\
277 0x185FEDEAL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
278 DEFINE_GUIDSTRUCT("185FEDEA-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_CD_MUTE);
279 #define KSAUDFNAME_CD_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_CD_MUTE)
280
281 #define STATIC_KSAUDFNAME_LINE_MUTE\
282 0x185FEDECL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
283 DEFINE_GUIDSTRUCT("185FEDEC-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_LINE_MUTE);
284 #define KSAUDFNAME_LINE_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_LINE_MUTE)
285
286 #define STATIC_KSAUDFNAME_MIC_MUTE\
287 0x185FEDEEL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
288 DEFINE_GUIDSTRUCT("185FEDEE-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_MIC_MUTE);
289 #define KSAUDFNAME_MIC_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_MIC_MUTE)
290
291 #define STATIC_KSAUDFNAME_AUX_MUTE\
292 0x185FEDFDL, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
293 DEFINE_GUIDSTRUCT("185FEDFD-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_AUX_MUTE);
294 #define KSAUDFNAME_AUX_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_AUX_MUTE)
295
296 #define STATIC_KSAUDFNAME_VOLUME_CONTROL\
297 0x185FEDF7L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
298 DEFINE_GUIDSTRUCT("185FEDF7-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_VOLUME_CONTROL);
299 #define KSAUDFNAME_VOLUME_CONTROL DEFINE_GUIDNAMED(KSAUDFNAME_VOLUME_CONTROL)
300
301 #define STATIC_KSNODETYPE_MUX\
302 0x2CEAF780L, 0xC556, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
303 DEFINE_GUIDSTRUCT("2CEAF780-C556-11D0-8A2B-00A0C9255AC1", KSNODETYPE_MUX);
304 #define KSNODETYPE_MUX DEFINE_GUIDNAMED(KSNODETYPE_MUX)
305
306 #define STATIC_KSAUDFNAME_MASTER_MUTE\
307 0x185FEDE4L, 0x9905, 0x11D1, 0x95, 0xA9, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
308 DEFINE_GUIDSTRUCT("185FEDE4-9905-11D1-95A9-00C04FB925D3", KSAUDFNAME_MASTER_MUTE);
309 #define KSAUDFNAME_MASTER_MUTE DEFINE_GUIDNAMED(KSAUDFNAME_MASTER_MUTE)
310
311 #define STATIC_KSNODETYPE_PEAKMETER\
312 0xa085651eL, 0x5f0d, 0x4b36, 0xa8, 0x69, 0xd1, 0x95, 0xd6, 0xab, 0x4b, 0x9e
313 DEFINE_GUIDSTRUCT("A085651E-5F0D-4b36-A869-D195D6AB4B9E", KSNODETYPE_PEAKMETER);
314 #define KSNODETYPE_PEAKMETER DEFINE_GUIDNAMED(KSNODETYPE_PEAKMETER)
315
316 #define STATIC_KSNODETYPE_STEREO_WIDE\
317 0xA9E69800L, 0xC558, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
318 DEFINE_GUIDSTRUCT("A9E69800-C558-11D0-8A2B-00A0C9255AC1", KSNODETYPE_STEREO_WIDE);
319 #define KSNODETYPE_STEREO_WIDE DEFINE_GUIDNAMED(KSNODETYPE_STEREO_WIDE)
320
321 #define STATIC_KSNODETYPE_TONE\
322 0x7607E580L, 0xC557, 0x11D0, 0x8A, 0x2B, 0x00, 0xA0, 0xC9, 0x25, 0x5A, 0xC1
323 DEFINE_GUIDSTRUCT("7607E580-C557-11D0-8A2B-00A0C9255AC1", KSNODETYPE_TONE);
324 #define KSNODETYPE_TONE DEFINE_GUIDNAMED(KSNODETYPE_TONE)
325
326 /*
327 Pins
328 */
329
330 #define STATIC_KSCATEGORY_WDMAUD_USE_PIN_NAME \
331 0x47A4FA20L, 0xA251, 0x11D1, {0xA0, 0x50, 0x00, 0x00, 0xF8, 0x00, 0x47, 0x88}
332 DEFINE_GUIDSTRUCT("47A4FA20-A251-11D1-A050-0000F8004788", KSCATEGORY_WDMAUD_USE_PIN_NAME);
333 #define KSCATEGORY_WDMAUD_USE_PIN_NAME DEFINE_GUIDNAMED(KSCATEGORY_WDMAUD_USE_PIN_NAME)
334
335
336 /*
337 Formats
338 */
339
340 //#if defined(_INC_MMREG)
341 #if !defined( PACK_PRAGMAS_NOT_SUPPORTED )
342 #include <pshpack1.h>
343 #endif
344 typedef struct {
345 KSDATAFORMAT DataFormat;
346 WAVEFORMATEX WaveFormatEx;
347 } KSDATAFORMAT_WAVEFORMATEX, *PKSDATAFORMAT_WAVEFORMATEX;
348
349 typedef struct {
350 ULONG Flags;
351 ULONG Control;
352 WAVEFORMATEX WaveFormatEx;
353 } KSDSOUND_BUFFERDESC, *PKSDSOUND_BUFFERDESC;
354
355 typedef struct {
356 KSDATAFORMAT DataFormat;
357 KSDSOUND_BUFFERDESC BufferDesc;
358 } KSDATAFORMAT_DSOUND, *PKSDATAFORMAT_DSOUND;
359
360 #if !defined( PACK_PRAGMAS_NOT_SUPPORTED )
361 #include <poppack.h>
362 #endif
363
364 //#endif
365
366 typedef struct {
367 KSDATARANGE DataRange;
368 ULONG MaximumChannels;
369 ULONG MinimumBitsPerSample;
370 ULONG MaximumBitsPerSample;
371 ULONG MinimumSampleFrequency;
372 ULONG MaximumSampleFrequency;
373 } KSDATARANGE_AUDIO, *PKSDATARANGE_AUDIO;
374
375 #if !defined( DEFINE_WAVEFORMATEX_GUID )
376 #define DEFINE_WAVEFORMATEX_GUID(x) (USHORT)(x), 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71
377 #endif
378
379 #define STATIC_KSDATAFORMAT_SUBTYPE_WAVEFORMATEX\
380 0x00000000L, 0x0000, 0x0010, 0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71
381 DEFINE_GUIDSTRUCT("00000000-0000-0010-8000-00aa00389b71", KSDATAFORMAT_SUBTYPE_WAVEFORMATEX);
382 #define KSDATAFORMAT_SUBTYPE_WAVEFORMATEX DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_WAVEFORMATEX)
383
384
385 #define INIT_WAVEFORMATEX_GUID(Guid, x) \
386 { \
387 *(Guid) = KSDATAFORMAT_SUBTYPE_WAVEFORMATEX; \
388 (Guid)->Data1 = (USHORT)(x); \
389 }
390
391 // 'vids'
392 #define STATIC_KSDATAFORMAT_TYPE_VIDEO \
393 0x73646976L, 0x0000, 0x0010, {0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
394 DEFINE_GUIDSTRUCT("73646976-0000-0010-8000-00aa00389b71", KSDATAFORMAT_TYPE_VIDEO);
395 #define KSDATAFORMAT_TYPE_VIDEO DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_VIDEO)
396
397 // 'auds'
398 #define STATIC_KSDATAFORMAT_TYPE_AUDIO \
399 0x73647561L, 0x0000, 0x0010, {0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
400 DEFINE_GUIDSTRUCT("73647561-0000-0010-8000-00aa00389b71", KSDATAFORMAT_TYPE_AUDIO);
401 #define KSDATAFORMAT_TYPE_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_AUDIO)
402
403 #define STATIC_KSDATAFORMAT_SPECIFIER_DSOUND\
404 0x518590a2L, 0xa184, 0x11d0, 0x85, 0x22, 0x00, 0xc0, 0x4f, 0xd9, 0xba, 0xf3
405 DEFINE_GUIDSTRUCT("518590a2-a184-11d0-8522-00c04fd9baf3", KSDATAFORMAT_SPECIFIER_DSOUND);
406 #define KSDATAFORMAT_SPECIFIER_DSOUND DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_DSOUND)
407
408 #define STATIC_KSDATAFORMAT_SUBTYPE_ANALOG\
409 0x6dba3190L, 0x67bd, 0x11cf, 0xa0, 0xf7, 0x00, 0x20, 0xaf, 0xd1, 0x56, 0xe4
410 DEFINE_GUIDSTRUCT("6dba3190-67bd-11cf-a0f7-0020afd156e4", KSDATAFORMAT_SUBTYPE_ANALOG);
411 #define KSDATAFORMAT_SUBTYPE_ANALOG DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_ANALOG)
412
413
414 // 'txts'
415 #define STATIC_KSDATAFORMAT_TYPE_TEXT \
416 0x73747874L, 0x0000, 0x0010, {0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
417 DEFINE_GUIDSTRUCT("73747874-0000-0010-8000-00aa00389b71", KSDATAFORMAT_TYPE_TEXT);
418 #define KSDATAFORMAT_TYPE_TEXT DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_TEXT)
419
420 #define STATIC_KSDATAFORMAT_TYPE_MUSIC \
421 0xE725D360L, 0x62CC, 0x11CF, {0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00}
422 DEFINE_GUIDSTRUCT("E725D360-62CC-11CF-A5D6-28DB04C10000", KSDATAFORMAT_TYPE_MUSIC);
423 #define KSDATAFORMAT_TYPE_MUSIC DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_MUSIC)
424
425 // 'mids'
426 #define STATIC_KSDATAFORMAT_TYPE_MIDI \
427 0x7364696DL, 0x0000, 0x0010, {0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
428 DEFINE_GUIDSTRUCT("7364696D-0000-0010-8000-00aa00389b71", KSDATAFORMAT_TYPE_MIDI);
429 #define KSDATAFORMAT_TYPE_MIDI DEFINE_GUIDNAMED(KSDATAFORMAT_TYPE_MIDI)
430
431 #define STATIC_KSDATAFORMAT_SUBTYPE_MIDI \
432 0x1D262760L, 0xE957, 0x11CF, {0xA5, 0xD6, 0x28, 0xDB, 0x04, 0xC1, 0x00, 0x00}
433 DEFINE_GUIDSTRUCT("1D262760-E957-11CF-A5D6-28DB04C10000", KSDATAFORMAT_SUBTYPE_MIDI);
434 #define KSDATAFORMAT_SUBTYPE_MIDI DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_MIDI)
435
436 #define STATIC_KSDATAFORMAT_SUBTYPE_PCM\
437 0x00000001L, 0x0000, 0x0010, {0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
438 DEFINE_GUIDSTRUCT("00000001-0000-0010-8000-00aa00389b71", KSDATAFORMAT_SUBTYPE_PCM);
439 #define KSDATAFORMAT_SUBTYPE_PCM DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_PCM)
440
441 #define STATIC_KSDATAFORMAT_SUBTYPE_IEEE_FLOAT\
442 0x00000003L, 0x0000, 0x0010, {0x80, 0x00, 0x00, 0xaa, 0x00, 0x38, 0x9b, 0x71}
443 DEFINE_GUIDSTRUCT("00000003-0000-0010-8000-00aa00389b71", KSDATAFORMAT_SUBTYPE_IEEE_FLOAT);
444 #define KSDATAFORMAT_SUBTYPE_IEEE_FLOAT DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_IEEE_FLOAT)
445
446 #define STATIC_KSDATAFORMAT_SPECIFIER_WAVEFORMATEX\
447 0x05589f81L, 0xc356, 0x11ce, 0xbf, 0x01, 0x00, 0xaa, 0x00, 0x55, 0x59, 0x5a
448 DEFINE_GUIDSTRUCT("05589f81-c356-11ce-bf01-00aa0055595a", KSDATAFORMAT_SPECIFIER_WAVEFORMATEX);
449 #define KSDATAFORMAT_SPECIFIER_WAVEFORMATEX DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_WAVEFORMATEX)
450
451 #define STATIC_KSDATAFORMAT_SUBTYPE_AC3_AUDIO\
452 0xe06d802cL, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea
453 DEFINE_GUIDSTRUCT("e06d802c-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_SUBTYPE_AC3_AUDIO);
454 #define KSDATAFORMAT_SUBTYPE_AC3_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SUBTYPE_AC3_AUDIO)
455
456 #define STATIC_KSDATAFORMAT_SPECIFIER_AC3_AUDIO\
457 0xe06d80e4L, 0xdb46, 0x11cf, 0xb4, 0xd1, 0x00, 0x80, 0x5f, 0x6c, 0xbb, 0xea
458 DEFINE_GUIDSTRUCT("e06d80e4-db46-11cf-b4d1-00805f6cbbea", KSDATAFORMAT_SPECIFIER_AC3_AUDIO);
459 #define KSDATAFORMAT_SPECIFIER_AC3_AUDIO DEFINE_GUIDNAMED(KSDATAFORMAT_SPECIFIER_AC3_AUDIO)
460
461 #define STATIC_KSPROPSETID_AC3\
462 0xBFABE720L, 0x6E1F, 0x11D0, 0xBC, 0xF2, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00
463 DEFINE_GUIDSTRUCT("BFABE720-6E1F-11D0-BCF2-444553540000", KSPROPSETID_AC3);
464 #define KSPROPSETID_AC3 DEFINE_GUIDNAMED(KSPROPSETID_AC3)
465
466 #define STATIC_KSPROPSETID_Audio\
467 0x45FFAAA0L, 0x6E1B, 0x11D0, {0xBC, 0xF2, 0x44, 0x45, 0x53, 0x54, 0x00, 0x00}
468 DEFINE_GUIDSTRUCT("45FFAAA0-6E1B-11D0-BCF2-444553540000", KSPROPSETID_Audio);
469 #define KSPROPSETID_Audio DEFINE_GUIDNAMED(KSPROPSETID_Audio)
470
471 typedef enum {
472 KSPROPERTY_AUDIO_LATENCY = 1,
473 KSPROPERTY_AUDIO_COPY_PROTECTION,
474 KSPROPERTY_AUDIO_CHANNEL_CONFIG,
475 KSPROPERTY_AUDIO_VOLUMELEVEL,
476 KSPROPERTY_AUDIO_POSITION,
477 KSPROPERTY_AUDIO_DYNAMIC_RANGE,
478 KSPROPERTY_AUDIO_QUALITY,
479 KSPROPERTY_AUDIO_SAMPLING_RATE,
480 KSPROPERTY_AUDIO_DYNAMIC_SAMPLING_RATE,
481 KSPROPERTY_AUDIO_MIX_LEVEL_TABLE,
482 KSPROPERTY_AUDIO_MIX_LEVEL_CAPS,
483 KSPROPERTY_AUDIO_MUX_SOURCE,
484 KSPROPERTY_AUDIO_MUTE,
485 KSPROPERTY_AUDIO_BASS,
486 KSPROPERTY_AUDIO_MID,
487 KSPROPERTY_AUDIO_TREBLE,
488 KSPROPERTY_AUDIO_BASS_BOOST,
489 KSPROPERTY_AUDIO_EQ_LEVEL,
490 KSPROPERTY_AUDIO_NUM_EQ_BANDS,
491 KSPROPERTY_AUDIO_EQ_BANDS,
492 KSPROPERTY_AUDIO_AGC,
493 KSPROPERTY_AUDIO_DELAY,
494 KSPROPERTY_AUDIO_LOUDNESS,
495 KSPROPERTY_AUDIO_WIDE_MODE,
496 KSPROPERTY_AUDIO_WIDENESS,
497 KSPROPERTY_AUDIO_REVERB_LEVEL,
498 KSPROPERTY_AUDIO_CHORUS_LEVEL,
499 KSPROPERTY_AUDIO_DEV_SPECIFIC,
500 KSPROPERTY_AUDIO_DEMUX_DEST,
501 KSPROPERTY_AUDIO_STEREO_ENHANCE,
502 KSPROPERTY_AUDIO_MANUFACTURE_GUID,
503 KSPROPERTY_AUDIO_PRODUCT_GUID,
504 KSPROPERTY_AUDIO_CPU_RESOURCES,
505 KSPROPERTY_AUDIO_STEREO_SPEAKER_GEOMETRY,
506 KSPROPERTY_AUDIO_SURROUND_ENCODE,
507 KSPROPERTY_AUDIO_3D_INTERFACE
508
509 #if (NTDDI_VERSION >= NTDDI_WINXP)
510 , KSPROPERTY_AUDIO_PEAKMETER
511 , KSPROPERTY_AUDIO_ALGORITHM_INSTANCE
512 , KSPROPERTY_AUDIO_FILTER_STATE
513 , KSPROPERTY_AUDIO_PREFERRED_STATUS
514
515 #endif
516 #if (NTDDI_VERSION >= NTDDI_LONGHORN)
517 , KSPROPERTY_AUDIO_PEQ_MAX_BANDS
518 , KSPROPERTY_AUDIO_PEQ_NUM_BANDS
519 , KSPROPERTY_AUDIO_PEQ_BAND_CENTER_FREQ
520 , KSPROPERTY_AUDIO_PEQ_BAND_Q_FACTOR
521 , KSPROPERTY_AUDIO_PEQ_BAND_LEVEL
522 , KSPROPERTY_AUDIO_CHORUS_MODULATION_RATE
523 , KSPROPERTY_AUDIO_CHORUS_MODULATION_DEPTH
524 , KSPROPERTY_AUDIO_REVERB_TIME
525 , KSPROPERTY_AUDIO_REVERB_DELAY_FEEDBACK
526 , KSPROPERTY_AUDIO_POSITIONEX
527 , KSPROPERTY_AUDIO_MIC_ARRAY_GEOMETRY
528 #endif
529
530 } KSPROPERTY_AUDIO;
531
532 #define STATIC_KSEVENTSETID_AudioControlChange\
533 0xE85E9698L, 0xFA2F, 0x11D1, 0x95, 0xBD, 0x00, 0xC0, 0x4F, 0xB9, 0x25, 0xD3
534 DEFINE_GUIDSTRUCT("E85E9698-FA2F-11D1-95BD-00C04FB925D3", KSEVENTSETID_AudioControlChange);
535 #define KSEVENTSETID_AudioControlChange DEFINE_GUIDNAMED(KSEVENTSETID_AudioControlChange)
536
537 typedef enum {
538 KSEVENT_CONTROL_CHANGE,
539 } KSEVENT_AUDIO_CONTROL_CHANGE;
540
541
542 #define STATIC_KSEVENTSETID_LoopedStreaming\
543 0x4682B940L, 0xC6EF, 0x11D0, 0x96, 0xD8, 0x00, 0xAA, 0x00, 0x51, 0xE5, 0x1D
544 DEFINE_GUIDSTRUCT("4682B940-C6EF-11D0-96D8-00AA0051E51D", KSEVENTSETID_LoopedStreaming);
545 #define KSEVENTSETID_LoopedStreaming DEFINE_GUIDNAMED(KSEVENTSETID_LoopedStreaming)
546
547 typedef enum {
548 KSEVENT_LOOPEDSTREAMING_POSITION,
549 } KSEVENT_LOOPEDSTREAMING;
550
551 #define STATIC_KSEVENTSETID_Connection\
552 0x7f4bcbe0L, 0x9ea5, 0x11cf, 0xa5, 0xd6, 0x28, 0xdb, 0x04, 0xc1, 0x00, 0x00
553 DEFINE_GUIDSTRUCT("7f4bcbe0-9ea5-11cf-a5d6-28db04c10000", KSEVENTSETID_Connection);
554 #define KSEVENTSETID_Connection DEFINE_GUIDNAMED(KSEVENTSETID_Connection)
555
556
557 typedef struct {
558 KSEVENTDATA KsEventData;
559 #if defined(_NTDDK_)
560 ULONGLONG Position;
561 #else // !_NTDDK_
562 DWORDLONG Position;
563 #endif // !_NTDDK_
564 } LOOPEDSTREAMING_POSITION_EVENT_DATA, *PLOOPEDSTREAMING_POSITION_EVENT_DATA ;
565
566
567 /*
568 SysAudio Properties
569 */
570
571 #define STATIC_KSPROPSETID_Sysaudio \
572 0xCBE3FAA0L, 0xCC75, 0x11D0, {0xB4, 0x65, 0x00, 0x00, 0x1A, 0x18, 0x18, 0xE6}
573 DEFINE_GUIDSTRUCT("CBE3FAA0-CC75-11D0-B465-00001A1818E6", KSPROPSETID_Sysaudio);
574 #define KSPROPSETID_Sysaudio DEFINE_GUIDNAMED(KSPROPSETID_Sysaudio)
575
576 typedef enum {
577 KSPROPERTY_SYSAUDIO_DEVICE_COUNT = 1,
578 KSPROPERTY_SYSAUDIO_DEVICE_FRIENDLY_NAME = 2,
579 KSPROPERTY_SYSAUDIO_DEVICE_INSTANCE = 3,
580 KSPROPERTY_SYSAUDIO_DEVICE_INTERFACE_NAME = 4,
581 KSPROPERTY_SYSAUDIO_SELECT_GRAPH = 5,
582 KSPROPERTY_SYSAUDIO_CREATE_VIRTUAL_SOURCE = 6,
583 KSPROPERTY_SYSAUDIO_DEVICE_DEFAULT = 7,
584 KSPROPERTY_SYSAUDIO_INSTANCE_INFO = 14,
585 KSPROPERTY_SYSAUDIO_COMPONENT_ID = 16
586 } KSPROPERTY_SYSAUDIO;
587
588 typedef struct {
589 KSPROPERTY Property;
590 ULONG Flags;
591 ULONG DeviceNumber;
592 } SYSAUDIO_INSTANCE_INFO, *PSYSAUDIO_INSTANCE_INFO;
593
594 #define SYSAUDIO_FLAGS_DONT_COMBINE_PINS 0x00000001
595
596
597 #define STATIC_KSPROPSETID_Sysaudio_Pin \
598 0xA3A53220L, 0xC6E4, 0x11D0, {0xB4, 0x65, 0x00, 0x00, 0x1A, 0x18, 0x18, 0xE6}
599 DEFINE_GUIDSTRUCT("A3A53220-C6E4-11D0-B465-00001A1818E6", KSPROPSETID_Sysaudio_Pin);
600 #define KSPROPSETID_Sysaudio_Pin DEFINE_GUIDNAMED(KSPROPSETID_Sysaudio_Pin)
601
602 typedef enum {
603 KSPROPERTY_SYSAUDIO_ATTACH_VIRTUAL_SOURCE = 1,
604 } KSPROPERTY_SYSAUDIO_PIN;
605
606
607 #define KSAUDIO_CPU_RESOURCES_NOT_HOST_CPU 0x00000000
608 #define KSAUDIO_CPU_RESOURCES_HOST_CPU 0x7FFFFFFF
609
610 #if (NTDDI_VERSION >= NTDDI_WINXP)
611 #define KSAUDIO_SPEAKER_DIRECTOUT 0
612 #endif
613 #define KSAUDIO_SPEAKER_MONO (SPEAKER_FRONT_CENTER)
614 #define KSAUDIO_SPEAKER_STEREO (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT)
615 #define KSAUDIO_SPEAKER_QUAD (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | \
616 SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT)
617 #define KSAUDIO_SPEAKER_SURROUND (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | \
618 SPEAKER_FRONT_CENTER | SPEAKER_BACK_CENTER)
619 #define KSAUDIO_SPEAKER_5POINT1 (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | \
620 SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | \
621 SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT)
622 #define KSAUDIO_SPEAKER_7POINT1 (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | \
623 SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | \
624 SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT | \
625 SPEAKER_FRONT_LEFT_OF_CENTER | SPEAKER_FRONT_RIGHT_OF_CENTER)
626
627 #if ( (NTDDI_VERSION >= NTDDI_WINXPSP2) && (NTDDI_VERSION < NTDDI_WS03) ) || (NTDDI_VERSION >= NTDDI_WS03SP1)
628
629 #define KSAUDIO_SPEAKER_5POINT1_SURROUND (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | \
630 SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | \
631 SPEAKER_SIDE_LEFT | SPEAKER_SIDE_RIGHT)
632 #define KSAUDIO_SPEAKER_7POINT1_SURROUND (SPEAKER_FRONT_LEFT | SPEAKER_FRONT_RIGHT | \
633 SPEAKER_FRONT_CENTER | SPEAKER_LOW_FREQUENCY | \
634 SPEAKER_BACK_LEFT | SPEAKER_BACK_RIGHT | \
635 SPEAKER_SIDE_LEFT | SPEAKER_SIDE_RIGHT)
636 #define KSAUDIO_SPEAKER_5POINT1_BACK KSAUDIO_SPEAKER_5POINT1
637 #define KSAUDIO_SPEAKER_7POINT1_WIDE KSAUDIO_SPEAKER_7POINT1
638 #endif
639
640 typedef struct
641 {
642 KSPROPERTY Property;
643 ULONG NodeId;
644 ULONG Reserved;
645 } KSNODEPROPERTY, *PKSNODEPROPERTY;
646
647 typedef struct
648 {
649 KSNODEPROPERTY NodeProperty;
650 LONG Channel;
651 ULONG Reserved;
652 } KSNODEPROPERTY_AUDIO_CHANNEL, *PKSNODEPROPERTY_AUDIO_CHANNEL;
653
654 typedef struct {
655 #if defined(_NTDDK_)
656 ULONGLONG PlayOffset;
657 ULONGLONG WriteOffset;
658 #else
659 DWORDLONG PlayOffset;
660 DWORDLONG WriteOffset;
661 #endif
662 } KSAUDIO_POSITION, *PKSAUDIO_POSITION;
663
664 typedef struct {
665 ULONG FifoSize;
666 ULONG ChipsetDelay;
667 ULONG CodecDelay;
668 } KSRTAUDIO_HWLATENCY, *PKSRTAUDIO_HWLATENCY;
669
670 typedef struct {
671 PVOID Register;
672 ULONG Width;
673 ULONGLONG Numerator;
674 ULONGLONG Denominator;
675 ULONG Accuracy;
676 } KSRTAUDIO_HWREGISTER, *PKSRTAUDIO_HWREGISTER;
677
678 #endif