4 * Copyright 1998 Patrik Stridvall
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
27 #include "wine/debug.h"
29 WINE_DEFAULT_DEBUG_CHANNEL(msacm);
31 /**************************************************************************
32 * DllEntryPoint (MSACM.255)
34 * MSACM DLL entry point
37 BOOL WINAPI MSACM_DllEntryPoint(DWORD fdwReason, HINSTANCE16 hinstDLL, WORD ds,
38 WORD wHeapSize, DWORD dwReserved1, WORD wReserved2)
42 TRACE("0x%x 0x%lx\n", hinstDLL, fdwReason);
45 case DLL_PROCESS_ATTACH:
46 if (!hndl && !(hndl = LoadLibraryA("MSACM32.DLL"))) {
47 ERR("Could not load sibling MsAcm32.dll\n");
51 case DLL_PROCESS_DETACH:
55 case DLL_THREAD_ATTACH:
56 case DLL_THREAD_DETACH:
62 /***********************************************************************
63 * acmGetVersion (MSACM.7)
65 DWORD WINAPI acmGetVersion16(void)
67 return acmGetVersion();
70 /***********************************************************************
71 * acmMetrics (MSACM.8)
74 MMRESULT16 WINAPI acmMetrics16(
75 HACMOBJ16 hao, UINT16 uMetric, LPVOID pMetric)
77 FIXME("(0x%04x, %d, %p): semi-stub\n", hao, uMetric, pMetric);
79 return acmMetrics(hao, uMetric, pMetric);
82 /***********************************************************************
83 * acmDriverEnum (MSACM.10)
85 MMRESULT16 WINAPI acmDriverEnum16(
86 ACMDRIVERENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum)
88 FIXME("(%p, %ld, %ld): stub\n",
89 fnCallback, dwInstance, fdwEnum
91 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
92 return MMSYSERR_ERROR;
95 /***********************************************************************
96 * acmDriverDetails (MSACM.11)
99 MMRESULT16 WINAPI acmDriverDetails16(
100 HACMDRIVERID16 hadid, LPACMDRIVERDETAILS16 padd, DWORD fdwDetails)
102 FIXME("(0x%04x, %p, %ld): stub\n", hadid, padd, fdwDetails);
103 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
104 return MMSYSERR_ERROR;
107 /***********************************************************************
108 * acmDriverAdd (MSACM.12)
110 MMRESULT16 WINAPI acmDriverAdd16(
111 LPHACMDRIVERID16 phadid, HINSTANCE16 hinstModule,
112 LPARAM lParam, DWORD dwPriority, DWORD fdwAdd)
114 FIXME("(%p, 0x%04x, %ld, %ld, %ld): stub\n",
115 phadid, hinstModule, lParam, dwPriority, fdwAdd
117 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
118 return MMSYSERR_ERROR;
121 /***********************************************************************
122 * acmDriverRemove (MSACM.13)
124 MMRESULT16 WINAPI acmDriverRemove16(
125 HACMDRIVERID16 hadid, DWORD fdwRemove)
127 FIXME("(0x%04x, %ld): stub\n", hadid, fdwRemove);
128 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
129 return MMSYSERR_ERROR;
132 /***********************************************************************
133 * acmDriverOpen (MSACM.14)
135 MMRESULT16 WINAPI acmDriverOpen16(
136 LPHACMDRIVER16 phad, HACMDRIVERID16 hadid, DWORD fdwOpen)
138 FIXME("(%p, 0x%04x, %ld): stub\n", phad, hadid, fdwOpen);
139 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
140 return MMSYSERR_ERROR;
143 /***********************************************************************
144 * acmDriverClose (MSACM.15)
146 MMRESULT16 WINAPI acmDriverClose16(
147 HACMDRIVER16 had, DWORD fdwClose)
149 FIXME("(0x%04x, %ld): stub\n", had, fdwClose);
150 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
151 return MMSYSERR_ERROR;
154 /***********************************************************************
155 * acmDriverMessage (MSACM.16)
157 LRESULT WINAPI acmDriverMessage16(
158 HACMDRIVER16 had, UINT16 uMsg, LPARAM lParam1, LPARAM lParam2)
160 FIXME("(0x%04x, %d, %ld, %ld): stub\n",
161 had, uMsg, lParam1, lParam2
163 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
167 /***********************************************************************
168 * acmDriverID (MSACM.17)
170 MMRESULT16 WINAPI acmDriverID16(
171 HACMOBJ16 hao, LPHACMDRIVERID16 phadid, DWORD fdwDriverID)
173 FIXME("(0x%04x, %p, %ld): stub\n", hao, phadid, fdwDriverID);
174 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
175 return MMSYSERR_ERROR;
178 /***********************************************************************
179 * acmDriverPriority (MSACM.18)
181 MMRESULT16 WINAPI acmDriverPriority16(
182 HACMDRIVERID16 hadid, DWORD dwPriority, DWORD fdwPriority)
184 FIXME("(0x%04x, %ld, %ld): stub\n",
185 hadid, dwPriority, fdwPriority
187 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
188 return MMSYSERR_ERROR;
191 /***********************************************************************
192 * acmFormatTagDetails (MSACM.30)
194 MMRESULT16 WINAPI acmFormatTagDetails16(
195 HACMDRIVER16 had, LPACMFORMATTAGDETAILS16 paftd, DWORD fdwDetails)
197 FIXME("(0x%04x, %p, %ld): stub\n", had, paftd, fdwDetails);
198 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
199 return MMSYSERR_ERROR;
202 /***********************************************************************
203 * acmFormatTagEnum (MSACM.31)
205 MMRESULT16 WINAPI acmFormatTagEnum16(
206 HACMDRIVER16 had, LPACMFORMATTAGDETAILS16 paftd,
207 ACMFORMATTAGENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum)
209 FIXME("(0x%04x, %p, %p, %ld, %ld): stub\n",
210 had, paftd, fnCallback, dwInstance, fdwEnum
212 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
213 return MMSYSERR_ERROR;
216 /***********************************************************************
217 * acmFormatChoose (MSACM.40)
219 MMRESULT16 WINAPI acmFormatChoose16(
220 LPACMFORMATCHOOSE16 pafmtc)
222 FIXME("(%p): stub\n", pafmtc);
223 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
224 return MMSYSERR_ERROR;
227 /***********************************************************************
228 * acmFormatDetails (MSACM.41)
230 MMRESULT16 WINAPI acmFormatDetails16(
231 HACMDRIVER16 had, LPACMFORMATDETAILS16 pafd, DWORD fdwDetails)
233 FIXME("(0x%04x, %p, %ld): stub\n", had, pafd, fdwDetails);
234 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
235 return MMSYSERR_ERROR;
238 /***********************************************************************
239 * acmFormatEnum (MSACM.42)
241 MMRESULT16 WINAPI acmFormatEnum16(
242 HACMDRIVER16 had, LPACMFORMATDETAILS16 pafd,
243 ACMFORMATENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum)
245 FIXME("(0x%04x, %p, %p, %ld, %ld): stub\n",
246 had, pafd, fnCallback, dwInstance, fdwEnum
248 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
249 return MMSYSERR_ERROR;
252 /***********************************************************************
253 * acmFormatSuggest (MSACM.45)
255 MMRESULT16 WINAPI acmFormatSuggest16(
256 HACMDRIVER16 had, LPWAVEFORMATEX pwfxSrc,
257 LPWAVEFORMATEX pwfxDst, DWORD cbwfxDst, DWORD fdwSuggest)
259 FIXME("(0x%04x, %p, %p, %ld, %ld): stub\n",
260 had, pwfxSrc, pwfxDst, cbwfxDst, fdwSuggest
262 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
263 return MMSYSERR_ERROR;
266 /***********************************************************************
267 * acmFilterTagDetails (MSACM.50)
269 MMRESULT16 WINAPI acmFilterTagDetails16(
270 HACMDRIVER16 had, LPACMFILTERTAGDETAILS16 paftd, DWORD fdwDetails)
272 FIXME("(0x%04x, %p, %ld): stub\n", had, paftd, fdwDetails);
273 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
274 return MMSYSERR_ERROR;
277 /***********************************************************************
278 * acmFilterTagEnum (MSACM.51)
280 MMRESULT16 WINAPI acmFilterTagEnum16(
281 HACMDRIVER16 had, LPACMFILTERTAGDETAILS16 paftd,
282 ACMFILTERTAGENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum)
284 FIXME("(0x%04x, %p, %p, %ld, %ld): stub\n",
285 had, paftd, fnCallback, dwInstance, fdwEnum
287 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
288 return MMSYSERR_ERROR;
291 /***********************************************************************
292 * acmFilterChoose (MSACM.60)
294 MMRESULT16 WINAPI acmFilterChoose16(
295 LPACMFILTERCHOOSE16 pafltrc)
297 FIXME("(%p): stub\n", pafltrc);
298 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
299 return MMSYSERR_ERROR;
302 /***********************************************************************
303 * acmFilterDetails (MSACM.61)
305 MMRESULT16 WINAPI acmFilterDetails16(
306 HACMDRIVER16 had, LPACMFILTERDETAILS16 pafd, DWORD fdwDetails)
308 FIXME("(0x%04x, %p, %ld): stub\n", had, pafd, fdwDetails);
309 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
310 return MMSYSERR_ERROR;
313 /***********************************************************************
314 * acmFilterEnum (MSACM.62)
316 MMRESULT16 WINAPI acmFilterEnum16(
317 HACMDRIVER16 had, LPACMFILTERDETAILS16 pafd,
318 ACMFILTERENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum)
320 FIXME("(0x%04x, %p, %p, %ld, %ld): stub\n",
321 had, pafd, fnCallback, dwInstance, fdwEnum
323 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
324 return MMSYSERR_ERROR;
327 /***********************************************************************
328 * acmStreamOpen (MSACM.70)
330 MMRESULT16 WINAPI acmStreamOpen16(
331 LPHACMSTREAM16 phas, HACMDRIVER16 had,
332 LPWAVEFORMATEX pwfxSrc, LPWAVEFORMATEX pwfxDst,
333 LPWAVEFILTER pwfltr, DWORD dwCallback,
334 DWORD dwInstance, DWORD fdwOpen)
336 FIXME("(%p, 0x%04x, %p, %p, %p, %ld, %ld, %ld): stub\n",
337 phas, had, pwfxSrc, pwfxDst, pwfltr,
338 dwCallback, dwInstance, fdwOpen
340 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
341 return MMSYSERR_ERROR;
344 /***********************************************************************
345 * acmStreamClose (MSACM.71)
347 MMRESULT16 WINAPI acmStreamClose16(
348 HACMSTREAM16 has, DWORD fdwClose)
350 FIXME("(0x%04x, %ld): stub\n", has, fdwClose);
351 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
352 return MMSYSERR_ERROR;
355 /***********************************************************************
356 * acmStreamSize (MSACM.72)
358 MMRESULT16 WINAPI acmStreamSize16(
359 HACMSTREAM16 has, DWORD cbInput,
360 LPDWORD pdwOutputBytes, DWORD fdwSize)
362 FIXME("(0x%04x, %ld, %p, %ld): stub\n",
363 has, cbInput, pdwOutputBytes, fdwSize
365 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
366 return MMSYSERR_ERROR;
369 /***********************************************************************
370 * acmStreamConvert (MSACM.75)
372 MMRESULT16 WINAPI acmStreamConvert16(
373 HACMSTREAM16 has, LPACMSTREAMHEADER16 pash, DWORD fdwConvert)
375 FIXME("(0x%04x, %p, %ld): stub\n", has, pash, fdwConvert);
376 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
377 return MMSYSERR_ERROR;
380 /***********************************************************************
381 * acmStreamReset (MSACM.76)
383 MMRESULT16 WINAPI acmStreamReset16(
384 HACMSTREAM16 has, DWORD fdwReset)
386 FIXME("(0x%04x, %ld): stub\n", has, fdwReset);
387 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
388 return MMSYSERR_ERROR;
391 /***********************************************************************
392 * acmStreamPrepareHeader (MSACM.77)
394 MMRESULT16 WINAPI acmStreamPrepareHeader16(
395 HACMSTREAM16 has, LPACMSTREAMHEADER16 pash, DWORD fdwPrepare)
397 FIXME("(0x%04x, %p, %ld): stub\n", has, pash, fdwPrepare);
398 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
399 return MMSYSERR_ERROR;
402 /***********************************************************************
403 * acmStreamUnprepareHeader (MSACM.78)
405 MMRESULT16 WINAPI acmStreamUnprepareHeader16(
406 HACMSTREAM16 has, LPACMSTREAMHEADER16 pash, DWORD fdwUnprepare)
408 FIXME("(0x%04x, %p, %ld): stub\n",
409 has, pash, fdwUnprepare
411 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
412 return MMSYSERR_ERROR;
415 /***********************************************************************
416 * ACMAPPLICATIONEXIT (MSACM.150)
418 * No documentation found.
421 /***********************************************************************
422 * ACMHUGEPAGELOCK (MSACM.175)
424 * No documentation found.
427 /***********************************************************************
428 * ACMHUGEPAGEUNLOCK (MSACM.176)
430 * No documentation found.
433 /***********************************************************************
434 * ACMOPENCONVERSION (MSACM.200)
436 * No documentation found.
439 /***********************************************************************
440 * ACMCLOSECONVERSION (MSACM.201)
442 * No documentation found.
445 /***********************************************************************
446 * ACMCONVERT (MSACM.202)
448 * No documentation found.
451 /***********************************************************************
452 * ACMCHOOSEFORMAT (MSACM.203)
454 * No documentation found.