Revert some word-splits to their normal form, e.g. InstallShield.
[wine/multimedia.git] / include / msacm.h
blob8e9c85b10a24a89128c93334c0076f3f8f7f01ba
1 /*
2 * Declarations for MSACM
4 * Copyright (C) the Wine project
6 * This library is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2.1 of the License, or (at your option) any later version.
11 * This library is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, write to the Free Software
18 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
21 #ifndef __WINE_MSACM_H
22 #define __WINE_MSACM_H
24 #ifdef __cplusplus
25 extern "C" {
26 #endif /* defined(__cplusplus) */
28 #define ACMAPI WINAPI
30 /***********************************************************************
31 * Defines/Enums
33 #define ACMERR_BASE 512
34 #define ACMERR_NOTPOSSIBLE (ACMERR_BASE + 0)
35 #define ACMERR_BUSY (ACMERR_BASE + 1)
36 #define ACMERR_UNPREPARED (ACMERR_BASE + 2)
37 #define ACMERR_CANCELED (ACMERR_BASE + 3)
39 #define MM_ACM_OPEN MM_STREAM_OPEN
40 #define MM_ACM_CLOSE MM_STREAM_CLOSE
41 #define MM_ACM_DONE MM_STREAM_DONE
43 #define ACM_DRIVERADDF_FUNCTION 0x00000003L
44 #define ACM_DRIVERADDF_NOTIFYHWND 0x00000004L
45 #define ACM_DRIVERADDF_TYPEMASK 0x00000007L
46 #define ACM_DRIVERADDF_LOCAL 0x00000000L
47 #define ACM_DRIVERADDF_GLOBAL 0x00000008L
49 #define ACMDRIVERDETAILS_SHORTNAME_CHARS 32
50 #define ACMDRIVERDETAILS_LONGNAME_CHARS 128
51 #define ACMDRIVERDETAILS_COPYRIGHT_CHARS 80
52 #define ACMDRIVERDETAILS_LICENSING_CHARS 128
53 #define ACMDRIVERDETAILS_FEATURES_CHARS 512
55 #define ACMDRIVERDETAILS_FCCTYPE_AUDIOCODEC mmioFOURCC('a', 'u', 'd', 'c')
56 #define ACMDRIVERDETAILS_FCCCOMP_UNDEFINED mmioFOURCC('\0', '\0', '\0', '\0')
58 #define ACMDRIVERDETAILS_SUPPORTF_CODEC 0x00000001L
59 #define ACMDRIVERDETAILS_SUPPORTF_CONVERTER 0x00000002L
60 #define ACMDRIVERDETAILS_SUPPORTF_FILTER 0x00000004L
61 #define ACMDRIVERDETAILS_SUPPORTF_HARDWARE 0x00000008L
62 #define ACMDRIVERDETAILS_SUPPORTF_ASYNC 0x00000010L
63 #define ACMDRIVERDETAILS_SUPPORTF_LOCAL 0x40000000L
64 #define ACMDRIVERDETAILS_SUPPORTF_DISABLED 0x80000000L
66 #define ACM_DRIVERENUMF_NOLOCAL 0x40000000L
67 #define ACM_DRIVERENUMF_DISABLED 0x80000000L
69 #define ACM_DRIVERPRIORITYF_ENABLE 0x00000001L
70 #define ACM_DRIVERPRIORITYF_DISABLE 0x00000002L
71 #define ACM_DRIVERPRIORITYF_ABLEMASK 0x00000003L
72 #define ACM_DRIVERPRIORITYF_BEGIN 0x00010000L
73 #define ACM_DRIVERPRIORITYF_END 0x00020000L
74 #define ACM_DRIVERPRIORITYF_DEFERMASK 0x00030000L
76 #define MM_ACM_FILTERCHOOSE 0x8000
78 #define FILTERCHOOSE_MESSAGE 0
79 #define FILTERCHOOSE_FILTERTAG_VERIFY (FILTERCHOOSE_MESSAGE+0)
80 #define FILTERCHOOSE_FILTER_VERIFY (FILTERCHOOSE_MESSAGE+1)
81 #define FILTERCHOOSE_CUSTOM_VERIFY (FILTERCHOOSE_MESSAGE+2)
83 #define ACMFILTERCHOOSE_STYLEF_SHOWHELP 0x00000004L
84 #define ACMFILTERCHOOSE_STYLEF_ENABLEHOOK 0x00000008L
85 #define ACMFILTERCHOOSE_STYLEF_ENABLETEMPLATE 0x00000010L
86 #define ACMFILTERCHOOSE_STYLEF_ENABLETEMPLATEHANDLE 0x00000020L
87 #define ACMFILTERCHOOSE_STYLEF_INITTOFILTERSTRUCT 0x00000040L
88 #define ACMFILTERCHOOSE_STYLEF_CONTEXTHELP 0x00000080L
90 #define ACMFILTERDETAILS_FILTER_CHARS 128
92 #define ACM_FILTERDETAILSF_INDEX 0x00000000L
93 #define ACM_FILTERDETAILSF_FILTER 0x00000001L
94 #define ACM_FILTERDETAILSF_QUERYMASK 0x0000000FL
96 #define ACMFILTERTAGDETAILS_FILTERTAG_CHARS 48
98 #define ACM_FILTERTAGDETAILSF_INDEX 0x00000000L
99 #define ACM_FILTERTAGDETAILSF_FILTERTAG 0x00000001L
100 #define ACM_FILTERTAGDETAILSF_LARGESTSIZE 0x00000002L
101 #define ACM_FILTERTAGDETAILSF_QUERYMASK 0x0000000FL
103 #define ACM_FILTERENUMF_DWFILTERTAG 0x00010000L
105 #define ACMHELPMSGSTRINGA "acmchoose_help"
106 #if defined(__GNUC__)
107 # define ACMHELPMSGSTRINGW (const WCHAR []){ 'a','c','m', \
108 'c','h','o','o','s','e','_','h','e','l','p',0 }
109 #elif defined(_MSC_VER)
110 # define ACMHELPMSGSTRINGW L"acmchoose_help"
111 #else
112 static const WCHAR ACMHELPMSGSTRINGW[] = { 'a','c','m',
113 'c','h','o','o','s','e','_','h','e','l','p',0 };
114 #endif
115 #define ACMHELPMSGSTRING WINELIB_NAME_AW(ACMHELPMSGSTRING)
117 #define ACMHELPMSGCONTEXTMENUA "acmchoose_contextmenu"
118 #if defined(__GNUC__)
119 # define ACMHELPMSGCONTEXTMENUW (const WCHAR []){ 'a','c','m', \
120 'c','h','o','o','s','e','_','c','o','n','t','e','x','t','m','e','n','u',0 }
121 #elif defined(_MSC_VER)
122 # define ACMHELPMSGCONTEXTMENUW L"acmchoose_contextmenu"
123 #else
124 static const WCHAR ACMHELPMSGCONTEXTMENUW[] = { 'a','c','m',
125 'c','h','o','o','s','e','_','c','o','n','t','e','x','t','m','e','n','u',0 };
126 #endif
127 #define ACMHELPMSGCONTEXTMENU WINELIB_NAME_AW(ACMHELPMSGCONTEXTMENU)
129 #define ACMHELPMSGCONTEXTHELPA "acmchoose_contexthelp"
130 #if defined(__GNUC__)
131 # define ACMHELPMSGCONTEXTHELPW (const WCHAR []){ 'a','c','m', \
132 'c','h','o','o','s','e','_','c','o','n','t','e','x','t','h','e','l','p',0 }
133 #elif defined(_MSC_VER)
134 # define ACMHELPMSGCONTEXTHELPW L"acmchoose_contexthelp"
135 #else
136 static const WCHAR ACMHELPMSGCONTEXTHELPW[] = { 'a','c','m',
137 'c','h','o','o','s','e','_','c','o','n','t','e','x','t','h','e','l','p',0 };
138 #endif
139 #define ACMHELPMSGCONTEXTHELP WINELIB_NAME_AW(ACMHELPMSGCONTEXTHELP)
141 #define MM_ACM_FORMATCHOOSE 0x8000
143 #define FORMATCHOOSE_MESSAGE 0
144 #define FORMATCHOOSE_FORMATTAG_VERIFY (FORMATCHOOSE_MESSAGE+0)
145 #define FORMATCHOOSE_FORMAT_VERIFY (FORMATCHOOSE_MESSAGE+1)
146 #define FORMATCHOOSE_CUSTOM_VERIFY (FORMATCHOOSE_MESSAGE+2)
148 #define ACMFORMATCHOOSE_STYLEF_SHOWHELP 0x00000004L
149 #define ACMFORMATCHOOSE_STYLEF_ENABLEHOOK 0x00000008L
150 #define ACMFORMATCHOOSE_STYLEF_ENABLETEMPLATE 0x00000010L
151 #define ACMFORMATCHOOSE_STYLEF_ENABLETEMPLATEHANDLE 0x00000020L
152 #define ACMFORMATCHOOSE_STYLEF_INITTOWFXSTRUCT 0x00000040L
153 #define ACMFORMATCHOOSE_STYLEF_CONTEXTHELP 0x00000080L
155 #define ACMFORMATDETAILS_FORMAT_CHARS 128
157 #define ACM_FORMATDETAILSF_INDEX 0x00000000L
158 #define ACM_FORMATDETAILSF_FORMAT 0x00000001L
159 #define ACM_FORMATDETAILSF_QUERYMASK 0x0000000FL
161 #define ACM_FORMATENUMF_WFORMATTAG 0x00010000L
162 #define ACM_FORMATENUMF_NCHANNELS 0x00020000L
163 #define ACM_FORMATENUMF_NSAMPLESPERSEC 0x00040000L
164 #define ACM_FORMATENUMF_WBITSPERSAMPLE 0x00080000L
165 #define ACM_FORMATENUMF_CONVERT 0x00100000L
166 #define ACM_FORMATENUMF_SUGGEST 0x00200000L
167 #define ACM_FORMATENUMF_HARDWARE 0x00400000L
168 #define ACM_FORMATENUMF_INPUT 0x00800000L
169 #define ACM_FORMATENUMF_OUTPUT 0x01000000L
171 #define ACM_FORMATSUGGESTF_WFORMATTAG 0x00010000L
172 #define ACM_FORMATSUGGESTF_NCHANNELS 0x00020000L
173 #define ACM_FORMATSUGGESTF_NSAMPLESPERSEC 0x00040000L
174 #define ACM_FORMATSUGGESTF_WBITSPERSAMPLE 0x00080000L
175 #define ACM_FORMATSUGGESTF_TYPEMASK 0x00FF0000L
177 #define ACMFORMATTAGDETAILS_FORMATTAG_CHARS 48
179 #define ACM_FORMATTAGDETAILSF_INDEX 0x00000000L
180 #define ACM_FORMATTAGDETAILSF_FORMATTAG 0x00000001L
181 #define ACM_FORMATTAGDETAILSF_LARGESTSIZE 0x00000002L
182 #define ACM_FORMATTAGDETAILSF_QUERYMASK 0x0000000FL
184 #define ACM_METRIC_COUNT_DRIVERS 1
185 #define ACM_METRIC_COUNT_CODECS 2
186 #define ACM_METRIC_COUNT_CONVERTERS 3
187 #define ACM_METRIC_COUNT_FILTERS 4
188 #define ACM_METRIC_COUNT_DISABLED 5
189 #define ACM_METRIC_COUNT_HARDWARE 6
190 #define ACM_METRIC_COUNT_LOCAL_DRIVERS 20
191 #define ACM_METRIC_COUNT_LOCAL_CODECS 21
192 #define ACM_METRIC_COUNT_LOCAL_CONVERTERS 22
193 #define ACM_METRIC_COUNT_LOCAL_FILTERS 23
194 #define ACM_METRIC_COUNT_LOCAL_DISABLED 24
195 #define ACM_METRIC_HARDWARE_WAVE_INPUT 30
196 #define ACM_METRIC_HARDWARE_WAVE_OUTPUT 31
197 #define ACM_METRIC_MAX_SIZE_FORMAT 50
198 #define ACM_METRIC_MAX_SIZE_FILTER 51
199 #define ACM_METRIC_DRIVER_SUPPORT 100
200 #define ACM_METRIC_DRIVER_PRIORITY 101
202 #define ACM_STREAMCONVERTF_BLOCKALIGN 0x00000004
203 #define ACM_STREAMCONVERTF_START 0x00000010
204 #define ACM_STREAMCONVERTF_END 0x00000020
206 #define ACMSTREAMHEADER_STATUSF_DONE 0x00010000L
207 #define ACMSTREAMHEADER_STATUSF_PREPARED 0x00020000L
208 #define ACMSTREAMHEADER_STATUSF_INQUEUE 0x00100000L
210 #define ACM_STREAMOPENF_QUERY 0x00000001
211 #define ACM_STREAMOPENF_ASYNC 0x00000002
212 #define ACM_STREAMOPENF_NONREALTIME 0x00000004
214 #define ACM_STREAMSIZEF_SOURCE 0x00000000L
215 #define ACM_STREAMSIZEF_DESTINATION 0x00000001L
216 #define ACM_STREAMSIZEF_QUERYMASK 0x0000000FL
218 #define ACMDM_USER (DRV_USER + 0x0000)
219 #define ACMDM_RESERVED_LOW (DRV_USER + 0x2000)
220 #define ACMDM_RESERVED_HIGH (DRV_USER + 0x2FFF)
222 #define ACMDM_BASE ACMDM_RESERVED_LOW
224 #define ACMDM_DRIVER_ABOUT (ACMDM_BASE + 11)
226 /* handles */
228 DECLARE_HANDLE(HACMDRIVERID);
229 DECLARE_HANDLE(HACMDRIVER);
230 DECLARE_HANDLE(HACMSTREAM);
231 DECLARE_HANDLE(HACMOBJ);
232 typedef HACMDRIVERID *PHACMDRIVERID, *LPHACMDRIVERID;
233 typedef HACMDRIVER *PHACMDRIVER, *LPHACMDRIVER;
234 typedef HACMSTREAM *PHACMSTREAM, *LPHACMSTREAM;
235 typedef HACMOBJ *PHACMOBJ, *LPHACMOBJ;
237 /***********************************************************************
238 * Callbacks
241 typedef BOOL (CALLBACK *ACMDRIVERENUMCB)(
242 HACMDRIVERID hadid, DWORD dwInstance, DWORD fdwSupport
245 typedef UINT (CALLBACK *ACMFILTERCHOOSEHOOKPROCA)(
246 HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam
249 typedef UINT (CALLBACK *ACMFILTERCHOOSEHOOKPROCW)(
250 HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam
252 #define ACMFILTERCHOOSEHOOKPROC WINELIB_NAME_AW(ACMFILTERCHOOSEHOOKPROC)
254 typedef UINT (CALLBACK *ACMFORMATCHOOSEHOOKPROCA)(
255 HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam
258 typedef UINT (CALLBACK *ACMFORMATCHOOSEHOOKPROCW)(
259 HWND hwnd, UINT uMsg, WPARAM wParam, LPARAM lParam
261 #define ACMFORMATCHOOSEHOOKPROC WINELIB_NAME_AW(ACMFORMATCHOOSEHOOKPROC)
263 /***********************************************************************
264 * Structures
267 typedef struct _ACMDRIVERDETAILSA
269 DWORD cbStruct;
271 FOURCC fccType;
272 FOURCC fccComp;
274 WORD wMid;
275 WORD wPid;
277 DWORD vdwACM;
278 DWORD vdwDriver;
280 DWORD fdwSupport;
281 DWORD cFormatTags;
282 DWORD cFilterTags;
284 HICON hicon;
286 CHAR szShortName[ACMDRIVERDETAILS_SHORTNAME_CHARS];
287 CHAR szLongName[ACMDRIVERDETAILS_LONGNAME_CHARS];
288 CHAR szCopyright[ACMDRIVERDETAILS_COPYRIGHT_CHARS];
289 CHAR szLicensing[ACMDRIVERDETAILS_LICENSING_CHARS];
290 CHAR szFeatures[ACMDRIVERDETAILS_FEATURES_CHARS];
291 } ACMDRIVERDETAILSA, *PACMDRIVERDETAILSA, *LPACMDRIVERDETAILSA;
293 typedef struct _ACMDRIVERDETAILSW
295 DWORD cbStruct;
297 FOURCC fccType;
298 FOURCC fccComp;
300 WORD wMid;
301 WORD wPid;
303 DWORD vdwACM;
304 DWORD vdwDriver;
306 DWORD fdwSupport;
307 DWORD cFormatTags;
308 DWORD cFilterTags;
310 HICON hicon;
312 WCHAR szShortName[ACMDRIVERDETAILS_SHORTNAME_CHARS];
313 WCHAR szLongName[ACMDRIVERDETAILS_LONGNAME_CHARS];
314 WCHAR szCopyright[ACMDRIVERDETAILS_COPYRIGHT_CHARS];
315 WCHAR szLicensing[ACMDRIVERDETAILS_LICENSING_CHARS];
316 WCHAR szFeatures[ACMDRIVERDETAILS_FEATURES_CHARS];
317 } ACMDRIVERDETAILSW, *PACMDRIVERDETAILSW, *LPACMDRIVERDETAILSW;
319 DECL_WINELIB_TYPE_AW(ACMDRIVERDETAILS)
320 DECL_WINELIB_TYPE_AW(PACMDRIVERDETAILS)
321 DECL_WINELIB_TYPE_AW(LPACMDRIVERDETAILS)
323 typedef struct _ACMFILTERCHOOSEA
325 DWORD cbStruct;
326 DWORD fdwStyle;
328 HWND hwndOwner;
330 PWAVEFILTER pwfltr;
331 DWORD cbwfltr;
333 LPCSTR pszTitle;
335 CHAR szFilterTag[ACMFILTERTAGDETAILS_FILTERTAG_CHARS];
336 CHAR szFilter[ACMFILTERDETAILS_FILTER_CHARS];
337 LPSTR pszName;
338 DWORD cchName;
340 DWORD fdwEnum;
341 PWAVEFILTER pwfltrEnum;
343 HINSTANCE hInstance;
344 LPCSTR pszTemplateName;
345 LPARAM lCustData;
346 ACMFILTERCHOOSEHOOKPROCA pfnHook;
347 } ACMFILTERCHOOSEA, *PACMFILTERCHOOSEA, *LPACMFILTERCHOOSEA;
349 typedef struct _ACMFILTERCHOOSEW
351 DWORD cbStruct;
352 DWORD fdwStyle;
354 HWND hwndOwner;
356 PWAVEFILTER pwfltr;
357 DWORD cbwfltr;
359 LPCWSTR pszTitle;
361 WCHAR szFilterTag[ACMFILTERTAGDETAILS_FILTERTAG_CHARS];
362 WCHAR szFilter[ACMFILTERDETAILS_FILTER_CHARS];
363 LPWSTR pszName;
364 DWORD cchName;
366 DWORD fdwEnum;
367 PWAVEFILTER pwfltrEnum;
369 HINSTANCE hInstance;
370 LPCWSTR pszTemplateName;
371 LPARAM lCustData;
372 ACMFILTERCHOOSEHOOKPROCW pfnHook;
373 } ACMFILTERCHOOSEW, *PACMFILTERCHOOSEW, *LPACMFILTERCHOOSEW;
375 DECL_WINELIB_TYPE_AW(ACMFILTERCHOOSE)
376 DECL_WINELIB_TYPE_AW(PACMFILTERCHOOSE)
377 DECL_WINELIB_TYPE_AW(LPACMFILTERCHOOSE)
379 typedef struct _ACMFILTERDETAILSA
381 DWORD cbStruct;
382 DWORD dwFilterIndex;
383 DWORD dwFilterTag;
384 DWORD fdwSupport;
385 PWAVEFILTER pwfltr;
386 DWORD cbwfltr;
387 CHAR szFilter[ACMFILTERDETAILS_FILTER_CHARS];
388 } ACMFILTERDETAILSA, *PACMFILTERDETAILSA, *LPACMFILTERDETAILSA;
390 typedef struct _ACMFILTERDETAILSW
392 DWORD cbStruct;
393 DWORD dwFilterIndex;
394 DWORD dwFilterTag;
395 DWORD fdwSupport;
396 PWAVEFILTER pwfltr;
397 DWORD cbwfltr;
398 WCHAR szFilter[ACMFILTERDETAILS_FILTER_CHARS];
399 } ACMFILTERDETAILSW, *PACMFILTERDETAILSW, *LPACMFILTERDETAILSW;
401 DECL_WINELIB_TYPE_AW(ACMFILTERDETAILS)
402 DECL_WINELIB_TYPE_AW(PACMFILTERDETAILS)
403 DECL_WINELIB_TYPE_AW(LPACMFILTERDETAILS)
405 typedef struct _ACMFILTERTAGDETAILSA
407 DWORD cbStruct;
408 DWORD dwFilterTagIndex;
409 DWORD dwFilterTag;
410 DWORD cbFilterSize;
411 DWORD fdwSupport;
412 DWORD cStandardFilters;
413 CHAR szFilterTag[ACMFILTERTAGDETAILS_FILTERTAG_CHARS];
414 } ACMFILTERTAGDETAILSA, *PACMFILTERTAGDETAILSA, *LPACMFILTERTAGDETAILSA;
416 typedef struct _ACMFILTERTAGDETAILSW
418 DWORD cbStruct;
419 DWORD dwFilterTagIndex;
420 DWORD dwFilterTag;
421 DWORD cbFilterSize;
422 DWORD fdwSupport;
423 DWORD cStandardFilters;
424 WCHAR szFilterTag[ACMFILTERTAGDETAILS_FILTERTAG_CHARS];
425 } ACMFILTERTAGDETAILSW, *PACMFILTERTAGDETAILSW, *LPACMFILTERTAGDETAILSW;
427 DECL_WINELIB_TYPE_AW(ACMFILTERTAGDETAILS)
428 DECL_WINELIB_TYPE_AW(PACMFILTERTAGDETAILS)
429 DECL_WINELIB_TYPE_AW(LPACMFILTERTAGDETAILS)
431 typedef struct _ACMFORMATCHOOSEA
433 DWORD cbStruct;
434 DWORD fdwStyle;
436 HWND hwndOwner;
438 PWAVEFORMATEX pwfx;
439 DWORD cbwfx;
440 LPCSTR pszTitle;
442 CHAR szFormatTag[ACMFORMATTAGDETAILS_FORMATTAG_CHARS];
443 CHAR szFormat[ACMFORMATDETAILS_FORMAT_CHARS];
445 LPSTR pszName;
446 DWORD cchName;
448 DWORD fdwEnum;
449 PWAVEFORMATEX pwfxEnum;
451 HINSTANCE hInstance;
452 LPCSTR pszTemplateName;
453 LPARAM lCustData;
454 ACMFORMATCHOOSEHOOKPROCA pfnHook;
455 } ACMFORMATCHOOSEA, *PACMFORMATCHOOSEA, *LPACMFORMATCHOOSEA;
457 typedef struct _ACMFORMATCHOOSEW
459 DWORD cbStruct;
460 DWORD fdwStyle;
462 HWND hwndOwner;
464 PWAVEFORMATEX pwfx;
465 DWORD cbwfx;
466 LPCWSTR pszTitle;
468 WCHAR szFormatTag[ACMFORMATTAGDETAILS_FORMATTAG_CHARS];
469 WCHAR szFormat[ACMFORMATDETAILS_FORMAT_CHARS];
471 LPWSTR pszName;
472 DWORD cchName;
474 DWORD fdwEnum;
475 LPWAVEFORMATEX pwfxEnum;
477 HINSTANCE hInstance;
478 LPCWSTR pszTemplateName;
479 LPARAM lCustData;
480 ACMFORMATCHOOSEHOOKPROCW pfnHook;
481 } ACMFORMATCHOOSEW, *PACMFORMATCHOOSEW, *LPACMFORMATCHOOSEW;
483 DECL_WINELIB_TYPE_AW(ACMFORMATCHOOSE)
484 DECL_WINELIB_TYPE_AW(PACMFORMATCHOOSE)
485 DECL_WINELIB_TYPE_AW(LPACMFORMATCHOOSE)
487 typedef struct _ACMFORMATDETAILSA
489 DWORD cbStruct;
490 DWORD dwFormatIndex;
491 DWORD dwFormatTag;
492 DWORD fdwSupport;
493 PWAVEFORMATEX pwfx;
494 DWORD cbwfx;
495 CHAR szFormat[ACMFORMATDETAILS_FORMAT_CHARS];
496 } ACMFORMATDETAILSA, *PACMFORMATDETAILSA, *LPACMFORMATDETAILSA;
498 typedef struct _ACMFORMATDETAILSW
500 DWORD cbStruct;
501 DWORD dwFormatIndex;
502 DWORD dwFormatTag;
503 DWORD fdwSupport;
504 PWAVEFORMATEX pwfx;
505 DWORD cbwfx;
506 WCHAR szFormat[ACMFORMATDETAILS_FORMAT_CHARS];
507 } ACMFORMATDETAILSW, *PACMFORMATDETAILSW, *LPACMFORMATDETAILSW;
509 DECL_WINELIB_TYPE_AW(ACMFORMATDETAILS)
510 DECL_WINELIB_TYPE_AW(PACMFORMATDETAILS)
511 DECL_WINELIB_TYPE_AW(LPACMFORMATDETAILS)
513 typedef struct _ACMFORMATTAGDETAILSA
515 DWORD cbStruct;
516 DWORD dwFormatTagIndex;
517 DWORD dwFormatTag;
518 DWORD cbFormatSize;
519 DWORD fdwSupport;
520 DWORD cStandardFormats;
521 CHAR szFormatTag[ACMFORMATTAGDETAILS_FORMATTAG_CHARS];
522 } ACMFORMATTAGDETAILSA, *PACMFORMATTAGDETAILSA, *LPACMFORMATTAGDETAILSA;
524 typedef struct _ACMFORMATTAGDETAILSW
526 DWORD cbStruct;
527 DWORD dwFormatTagIndex;
528 DWORD dwFormatTag;
529 DWORD cbFormatSize;
530 DWORD fdwSupport;
531 DWORD cStandardFormats;
532 WCHAR szFormatTag[ACMFORMATTAGDETAILS_FORMATTAG_CHARS];
533 } ACMFORMATTAGDETAILSW, *PACMFORMATTAGDETAILSW, *LPACMFORMATTAGDETAILSW;
535 DECL_WINELIB_TYPE_AW(ACMFORMATTAGDETAILS)
536 DECL_WINELIB_TYPE_AW(PACMFORMATTAGDETAILS)
537 DECL_WINELIB_TYPE_AW(LPACMFORMATTAGDETAILS)
539 typedef struct _ACMSTREAMHEADER
541 DWORD cbStruct;
542 DWORD fdwStatus;
543 DWORD dwUser;
544 LPBYTE pbSrc;
545 DWORD cbSrcLength;
546 DWORD cbSrcLengthUsed;
547 DWORD dwSrcUser;
548 LPBYTE pbDst;
549 DWORD cbDstLength;
550 DWORD cbDstLengthUsed;
551 DWORD dwDstUser;
552 DWORD dwReservedDriver[10];
553 } ACMSTREAMHEADER, *PACMSTREAMHEADER, *LPACMSTREAMHEADER;
555 /***********************************************************************
556 * Callbacks 2
559 typedef BOOL (CALLBACK *ACMFILTERENUMCBA)(
560 HACMDRIVERID hadid, PACMFILTERDETAILSA pafd,
561 DWORD dwInstance, DWORD fdwSupport
564 typedef BOOL (CALLBACK *ACMFILTERENUMCBW)(
565 HACMDRIVERID hadid, PACMFILTERDETAILSW pafd,
566 DWORD dwInstance, DWORD fdwSupport
569 #define ACMFILTERENUMCB WINELIB_NAME_AW(ACMFILTERENUMCB)
571 typedef BOOL (CALLBACK *ACMFILTERTAGENUMCBA)(
572 HACMDRIVERID hadid, PACMFILTERTAGDETAILSA paftd,
573 DWORD dwInstance, DWORD fdwSupport
576 typedef BOOL (CALLBACK *ACMFILTERTAGENUMCBW)(
577 HACMDRIVERID hadid, PACMFILTERTAGDETAILSW paftd,
578 DWORD dwInstance, DWORD fdwSupport
581 #define ACMFILTERTAGENUMCB WINELIB_NAME_AW(ACMFILTERTAGENUMCB)
583 typedef BOOL (CALLBACK *ACMFORMATENUMCBA)(
584 HACMDRIVERID hadid, PACMFORMATDETAILSA pafd,
585 DWORD dwInstance, DWORD fdwSupport
588 typedef BOOL (CALLBACK *ACMFORMATENUMCBW)(
589 HACMDRIVERID hadid, PACMFORMATDETAILSW pafd,
590 DWORD dwInstance, DWORD fdwSupport
593 #define ACMFORMATENUMCB WINELIB_NAME_AW(ACMFORMATENUMCB)
595 typedef BOOL (CALLBACK *ACMFORMATTAGENUMCBA)(
596 HACMDRIVERID hadid, PACMFORMATTAGDETAILSA paftd,
597 DWORD dwInstance, DWORD fdwSupport
600 typedef BOOL (CALLBACK *ACMFORMATTAGENUMCBW)(
601 HACMDRIVERID hadid, PACMFORMATTAGDETAILSW paftd,
602 DWORD dwInstance, DWORD fdwSupport
605 #define ACMFORMATTAGENUMCB WINELIB_NAME_AW(ACMFORMATTAGENUMCB)
607 /***********************************************************************
608 * Functions - Win32
611 MMRESULT WINAPI acmDriverAddA(
612 PHACMDRIVERID phadid, HINSTANCE hinstModule,
613 LPARAM lParam, DWORD dwPriority, DWORD fdwAdd
615 MMRESULT WINAPI acmDriverAddW(
616 PHACMDRIVERID phadid, HINSTANCE hinstModule,
617 LPARAM lParam, DWORD dwPriority, DWORD fdwAdd
619 #define acmDriverAdd WINELIB_NAME_AW(acmDriverAdd)
621 MMRESULT WINAPI acmDriverClose(
622 HACMDRIVER had, DWORD fdwClose
624 MMRESULT WINAPI acmDriverDetailsA(
625 HACMDRIVERID hadid, PACMDRIVERDETAILSA padd, DWORD fdwDetails
627 MMRESULT WINAPI acmDriverDetailsW(
628 HACMDRIVERID hadid, PACMDRIVERDETAILSW padd, DWORD fdwDetails
630 #define acmDriverDetails WINELIB_NAME_AW(acmDriverDetails)
632 MMRESULT WINAPI acmDriverEnum(
633 ACMDRIVERENUMCB fnCallback, DWORD dwInstance, DWORD fdwEnum
635 MMRESULT WINAPI acmDriverID(
636 HACMOBJ hao, PHACMDRIVERID phadid, DWORD fdwDriverID
638 LRESULT WINAPI acmDriverMessage(
639 HACMDRIVER had, UINT uMsg, LPARAM lParam1, LPARAM lParam2
641 MMRESULT WINAPI acmDriverOpen(
642 PHACMDRIVER phad, HACMDRIVERID hadid, DWORD fdwOpen
644 MMRESULT WINAPI acmDriverPriority(
645 HACMDRIVERID hadid, DWORD dwPriority, DWORD fdwPriority
647 MMRESULT WINAPI acmDriverRemove(
648 HACMDRIVERID hadid, DWORD fdwRemove
650 MMRESULT WINAPI acmFilterChooseA(
651 PACMFILTERCHOOSEA pafltrc
653 MMRESULT WINAPI acmFilterChooseW(
654 PACMFILTERCHOOSEW pafltrc
656 #define acmFilterChoose WINELIB_NAME_AW(acmFilterChoose)
658 MMRESULT WINAPI acmFilterDetailsA(
659 HACMDRIVER had, PACMFILTERDETAILSA pafd, DWORD fdwDetails
661 MMRESULT WINAPI acmFilterDetailsW(
662 HACMDRIVER had, PACMFILTERDETAILSW pafd, DWORD fdwDetails
664 #define acmFilterDetails WINELIB_NAME_AW(acmFilterDetails)
666 MMRESULT WINAPI acmFilterEnumA(
667 HACMDRIVER had, PACMFILTERDETAILSA pafd,
668 ACMFILTERENUMCBA fnCallback, DWORD dwInstance, DWORD fdwEnum
670 MMRESULT WINAPI acmFilterEnumW(
671 HACMDRIVER had, PACMFILTERDETAILSW pafd,
672 ACMFILTERENUMCBW fnCallback, DWORD dwInstance, DWORD fdwEnum
674 #define acmFilterEnum WINELIB_NAME_AW(acmFilterEnum)
676 MMRESULT WINAPI acmFilterTagDetailsA(
677 HACMDRIVER had, PACMFILTERTAGDETAILSA paftd, DWORD fdwDetails
679 MMRESULT WINAPI acmFilterTagDetailsW(
680 HACMDRIVER had, PACMFILTERTAGDETAILSW paftd, DWORD fdwDetails
682 #define acmFilterTagDetails WINELIB_NAME_AW(acmFilterTagDetails)
684 MMRESULT WINAPI acmFilterTagEnumA(
685 HACMDRIVER had, PACMFILTERTAGDETAILSA paftd,
686 ACMFILTERTAGENUMCBA fnCallback, DWORD dwInstance, DWORD fdwEnum
688 MMRESULT WINAPI acmFilterTagEnumW(
689 HACMDRIVER had, PACMFILTERTAGDETAILSW paftd,
690 ACMFILTERTAGENUMCBW fnCallback, DWORD dwInstance, DWORD fdwEnum
692 #define acmFilterTagEnum WINELIB_NAME_AW(acmFilterTagEnum)
694 MMRESULT WINAPI acmFormatChooseA(
695 PACMFORMATCHOOSEA pafmtc
697 MMRESULT WINAPI acmFormatChooseW(
698 PACMFORMATCHOOSEW pafmtc
700 #define acmFormatChoose WINELIB_NAME_AW(acmFormatChoose)
702 MMRESULT WINAPI acmFormatDetailsA(
703 HACMDRIVER had, PACMFORMATDETAILSA pafd, DWORD fdwDetails
705 MMRESULT WINAPI acmFormatDetailsW(
706 HACMDRIVER had, PACMFORMATDETAILSW pafd, DWORD fdwDetails
708 #define acmFormatDetails WINELIB_NAME_AW(acmFormatDetails)
710 MMRESULT WINAPI acmFormatEnumA(
711 HACMDRIVER had, PACMFORMATDETAILSA pafd,
712 ACMFORMATENUMCBA fnCallback, DWORD dwInstance, DWORD fdwEnum
714 MMRESULT WINAPI acmFormatEnumW(
715 HACMDRIVER had, PACMFORMATDETAILSW pafd,
716 ACMFORMATENUMCBW fnCallback, DWORD dwInstance, DWORD fdwEnum
718 #define acmFormatEnum WINELIB_NAME_AW(acmFormatEnum)
720 MMRESULT WINAPI acmFormatSuggest(
721 HACMDRIVER had, PWAVEFORMATEX pwfxSrc, PWAVEFORMATEX pwfxDst,
722 DWORD cbwfxDst, DWORD fdwSuggest
724 MMRESULT WINAPI acmFormatTagDetailsA(
725 HACMDRIVER had, PACMFORMATTAGDETAILSA paftd, DWORD fdwDetails
727 MMRESULT WINAPI acmFormatTagDetailsW(
728 HACMDRIVER had, PACMFORMATTAGDETAILSW paftd, DWORD fdwDetails
730 #define acmFormatTagDetails WINELIB_NAME_AW(acmFormatTagDetails)
732 MMRESULT WINAPI acmFormatTagEnumA(
733 HACMDRIVER had, PACMFORMATTAGDETAILSA paftd,
734 ACMFORMATTAGENUMCBA fnCallback, DWORD dwInstance, DWORD fdwEnum
736 MMRESULT WINAPI acmFormatTagEnumW(
737 HACMDRIVER had, PACMFORMATTAGDETAILSW paftd,
738 ACMFORMATTAGENUMCBW fnCallback, DWORD dwInstance, DWORD fdwEnum
740 #define acmFormatTagEnum WINELIB_NAME_AW(acmFormatTagEnum)
742 DWORD WINAPI acmGetVersion(void
744 MMRESULT WINAPI acmMetrics(
745 HACMOBJ hao, UINT uMetric, LPVOID pMetric
747 MMRESULT WINAPI acmStreamClose(
748 HACMSTREAM has, DWORD fdwClose
750 MMRESULT WINAPI acmStreamConvert(
751 HACMSTREAM has, PACMSTREAMHEADER pash, DWORD fdwConvert
753 MMRESULT WINAPI acmStreamMessage(
754 HACMSTREAM has, UINT uMsg, LPARAM lParam1, LPARAM lParam2
756 MMRESULT WINAPI acmStreamOpen(
757 PHACMSTREAM phas, HACMDRIVER had, PWAVEFORMATEX pwfxSrc,
758 PWAVEFORMATEX pwfxDst, PWAVEFILTER pwfltr, DWORD dwCallback,
759 DWORD dwInstance, DWORD fdwOpen
761 MMRESULT WINAPI acmStreamPrepareHeader(
762 HACMSTREAM has, PACMSTREAMHEADER pash, DWORD fdwPrepare
764 MMRESULT WINAPI acmStreamReset(
765 HACMSTREAM has, DWORD fdwReset
767 MMRESULT WINAPI acmStreamSize(
768 HACMSTREAM has, DWORD cbInput,
769 LPDWORD pdwOutputBytes, DWORD fdwSize
771 MMRESULT WINAPI acmStreamUnprepareHeader(
772 HACMSTREAM has, PACMSTREAMHEADER pash, DWORD fdwUnprepare
775 #ifdef __cplusplus
776 } /* extern "C" */
777 #endif /* defined(__cplusplus) */
779 #endif /* __WINE_MSACM_H */