d3dx9_30: Add stub for D3DXCpuOptimizations.
[wine.git] / dlls / msacm.dll16 / msacm.c
blob48729f9608cbc095f9b60481da0dbf3b4286ab57
1 /*
2 * MSACM library
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., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA
21 #include <stdarg.h>
23 #include "windef.h"
24 #include "winbase.h"
25 #include "winerror.h"
26 #include "mmsystem.h"
27 #define NOBITMAP
28 #include "mmreg.h"
29 #include "msacm.h"
30 #include "msacmdrv.h"
31 #include "wineacm16.h"
32 #include "wine/debug.h"
34 WINE_DEFAULT_DEBUG_CHANNEL(msacm);
36 /**************************************************************************
37 * DllEntryPoint (MSACM.3)
39 * MSACM DLL entry point
42 BOOL WINAPI DllEntryPoint16(DWORD fdwReason, HINSTANCE16 hinstDLL, WORD ds,
43 WORD wHeapSize, DWORD dwReserved1, WORD wReserved2)
45 return TRUE;
48 /***********************************************************************
49 * acmGetVersion (MSACM.7)
51 DWORD WINAPI acmGetVersion16(void)
53 return acmGetVersion();
56 /***********************************************************************
57 * acmMetrics (MSACM.8)
60 MMRESULT16 WINAPI acmMetrics16(
61 HACMOBJ16 hao, UINT16 uMetric, LPVOID pMetric)
63 FIXME("(0x%04x, %d, %p): semi-stub\n", hao, uMetric, pMetric);
65 if(!hao) return acmMetrics(0, uMetric, pMetric);
66 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
67 return MMSYSERR_ERROR;
70 /***********************************************************************
71 * acmDriverEnum (MSACM.10)
73 MMRESULT16 WINAPI acmDriverEnum16(
74 ACMDRIVERENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum)
76 FIXME("(%p, %d, %d): stub\n",
77 fnCallback, dwInstance, fdwEnum
79 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
80 return MMSYSERR_ERROR;
83 /***********************************************************************
84 * acmDriverDetails (MSACM.11)
87 MMRESULT16 WINAPI acmDriverDetails16(
88 HACMDRIVERID16 hadid, LPACMDRIVERDETAILS16 padd, DWORD fdwDetails)
90 FIXME("(0x%04x, %p, %d): stub\n", hadid, padd, fdwDetails);
91 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
92 return MMSYSERR_ERROR;
95 /***********************************************************************
96 * acmDriverAdd (MSACM.12)
98 MMRESULT16 WINAPI acmDriverAdd16(
99 LPHACMDRIVERID16 phadid, HINSTANCE16 hinstModule,
100 LPARAM lParam, DWORD dwPriority, DWORD fdwAdd)
102 FIXME("(%p, 0x%04x, %ld, %d, %d): stub\n",
103 phadid, hinstModule, lParam, dwPriority, fdwAdd
105 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
106 return MMSYSERR_ERROR;
109 /***********************************************************************
110 * acmDriverRemove (MSACM.13)
112 MMRESULT16 WINAPI acmDriverRemove16(
113 HACMDRIVERID16 hadid, DWORD fdwRemove)
115 FIXME("(0x%04x, %d): stub\n", hadid, fdwRemove);
116 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
117 return MMSYSERR_ERROR;
120 /***********************************************************************
121 * acmDriverOpen (MSACM.14)
123 MMRESULT16 WINAPI acmDriverOpen16(
124 LPHACMDRIVER16 phad, HACMDRIVERID16 hadid, DWORD fdwOpen)
126 FIXME("(%p, 0x%04x, %d): stub\n", phad, hadid, fdwOpen);
127 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
128 return MMSYSERR_ERROR;
131 /***********************************************************************
132 * acmDriverClose (MSACM.15)
134 MMRESULT16 WINAPI acmDriverClose16(
135 HACMDRIVER16 had, DWORD fdwClose)
137 FIXME("(0x%04x, %d): stub\n", had, fdwClose);
138 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
139 return MMSYSERR_ERROR;
142 /***********************************************************************
143 * acmDriverMessage (MSACM.16)
145 LRESULT WINAPI acmDriverMessage16(
146 HACMDRIVER16 had, UINT16 uMsg, LPARAM lParam1, LPARAM lParam2)
148 FIXME("(0x%04x, %d, %ld, %ld): stub\n",
149 had, uMsg, lParam1, lParam2
151 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
152 return 0;
155 /***********************************************************************
156 * acmDriverID (MSACM.17)
158 MMRESULT16 WINAPI acmDriverID16(
159 HACMOBJ16 hao, LPHACMDRIVERID16 phadid, DWORD fdwDriverID)
161 FIXME("(0x%04x, %p, %d): stub\n", hao, phadid, fdwDriverID);
162 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
163 return MMSYSERR_ERROR;
166 /***********************************************************************
167 * acmDriverPriority (MSACM.18)
169 MMRESULT16 WINAPI acmDriverPriority16(
170 HACMDRIVERID16 hadid, DWORD dwPriority, DWORD fdwPriority)
172 FIXME("(0x%04x, %d, %d): stub\n",
173 hadid, dwPriority, fdwPriority
175 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
176 return MMSYSERR_ERROR;
179 /***********************************************************************
180 * acmFormatTagDetails (MSACM.30)
182 MMRESULT16 WINAPI acmFormatTagDetails16(
183 HACMDRIVER16 had, LPACMFORMATTAGDETAILS16 paftd, DWORD fdwDetails)
185 FIXME("(0x%04x, %p, %d): stub\n", had, paftd, fdwDetails);
186 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
187 return MMSYSERR_ERROR;
190 /***********************************************************************
191 * acmFormatTagEnum (MSACM.31)
193 MMRESULT16 WINAPI acmFormatTagEnum16(
194 HACMDRIVER16 had, LPACMFORMATTAGDETAILS16 paftd,
195 ACMFORMATTAGENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum)
197 FIXME("(0x%04x, %p, %p, %d, %d): stub\n",
198 had, paftd, fnCallback, dwInstance, fdwEnum
200 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
201 return MMSYSERR_ERROR;
204 /***********************************************************************
205 * acmFormatChoose (MSACM.40)
207 MMRESULT16 WINAPI acmFormatChoose16(
208 LPACMFORMATCHOOSE16 pafmtc)
210 FIXME("(%p): stub\n", pafmtc);
211 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
212 return MMSYSERR_ERROR;
215 /***********************************************************************
216 * acmFormatDetails (MSACM.41)
218 MMRESULT16 WINAPI acmFormatDetails16(
219 HACMDRIVER16 had, LPACMFORMATDETAILS16 pafd, DWORD fdwDetails)
221 FIXME("(0x%04x, %p, %d): stub\n", had, pafd, fdwDetails);
222 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
223 return MMSYSERR_ERROR;
226 /***********************************************************************
227 * acmFormatEnum (MSACM.42)
229 MMRESULT16 WINAPI acmFormatEnum16(
230 HACMDRIVER16 had, LPACMFORMATDETAILS16 pafd,
231 ACMFORMATENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum)
233 FIXME("(0x%04x, %p, %p, %d, %d): stub\n",
234 had, pafd, fnCallback, dwInstance, fdwEnum
236 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
237 return MMSYSERR_ERROR;
240 /***********************************************************************
241 * acmFormatSuggest (MSACM.45)
243 MMRESULT16 WINAPI acmFormatSuggest16(
244 HACMDRIVER16 had, LPWAVEFORMATEX pwfxSrc,
245 LPWAVEFORMATEX pwfxDst, DWORD cbwfxDst, DWORD fdwSuggest)
247 FIXME("(0x%04x, %p, %p, %d, %d): stub\n",
248 had, pwfxSrc, pwfxDst, cbwfxDst, fdwSuggest
250 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
251 return MMSYSERR_ERROR;
254 /***********************************************************************
255 * acmFilterTagDetails (MSACM.50)
257 MMRESULT16 WINAPI acmFilterTagDetails16(
258 HACMDRIVER16 had, LPACMFILTERTAGDETAILS16 paftd, DWORD fdwDetails)
260 FIXME("(0x%04x, %p, %d): stub\n", had, paftd, fdwDetails);
261 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
262 return MMSYSERR_ERROR;
265 /***********************************************************************
266 * acmFilterTagEnum (MSACM.51)
268 MMRESULT16 WINAPI acmFilterTagEnum16(
269 HACMDRIVER16 had, LPACMFILTERTAGDETAILS16 paftd,
270 ACMFILTERTAGENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum)
272 FIXME("(0x%04x, %p, %p, %d, %d): stub\n",
273 had, paftd, fnCallback, dwInstance, fdwEnum
275 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
276 return MMSYSERR_ERROR;
279 /***********************************************************************
280 * acmFilterChoose (MSACM.60)
282 MMRESULT16 WINAPI acmFilterChoose16(
283 LPACMFILTERCHOOSE16 pafltrc)
285 FIXME("(%p): stub\n", pafltrc);
286 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
287 return MMSYSERR_ERROR;
290 /***********************************************************************
291 * acmFilterDetails (MSACM.61)
293 MMRESULT16 WINAPI acmFilterDetails16(
294 HACMDRIVER16 had, LPACMFILTERDETAILS16 pafd, DWORD fdwDetails)
296 FIXME("(0x%04x, %p, %d): stub\n", had, pafd, fdwDetails);
297 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
298 return MMSYSERR_ERROR;
301 /***********************************************************************
302 * acmFilterEnum (MSACM.62)
304 MMRESULT16 WINAPI acmFilterEnum16(
305 HACMDRIVER16 had, LPACMFILTERDETAILS16 pafd,
306 ACMFILTERENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum)
308 FIXME("(0x%04x, %p, %p, %d, %d): stub\n",
309 had, pafd, fnCallback, dwInstance, fdwEnum
311 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
312 return MMSYSERR_ERROR;
315 /***********************************************************************
316 * acmStreamOpen (MSACM.70)
318 MMRESULT16 WINAPI acmStreamOpen16(
319 LPHACMSTREAM16 phas, HACMDRIVER16 had,
320 LPWAVEFORMATEX pwfxSrc, LPWAVEFORMATEX pwfxDst,
321 LPWAVEFILTER pwfltr, DWORD dwCallback,
322 DWORD dwInstance, DWORD fdwOpen)
324 FIXME("(%p, 0x%04x, %p, %p, %p, %d, %d, %d): stub\n",
325 phas, had, pwfxSrc, pwfxDst, pwfltr,
326 dwCallback, dwInstance, fdwOpen
328 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
329 return MMSYSERR_ERROR;
332 /***********************************************************************
333 * acmStreamClose (MSACM.71)
335 MMRESULT16 WINAPI acmStreamClose16(
336 HACMSTREAM16 has, DWORD fdwClose)
338 FIXME("(0x%04x, %d): stub\n", has, fdwClose);
339 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
340 return MMSYSERR_ERROR;
343 /***********************************************************************
344 * acmStreamSize (MSACM.72)
346 MMRESULT16 WINAPI acmStreamSize16(
347 HACMSTREAM16 has, DWORD cbInput,
348 LPDWORD pdwOutputBytes, DWORD fdwSize)
350 FIXME("(0x%04x, %d, %p, %d): stub\n",
351 has, cbInput, pdwOutputBytes, fdwSize
353 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
354 return MMSYSERR_ERROR;
357 /***********************************************************************
358 * acmStreamConvert (MSACM.75)
360 MMRESULT16 WINAPI acmStreamConvert16(
361 HACMSTREAM16 has, LPACMSTREAMHEADER16 pash, DWORD fdwConvert)
363 FIXME("(0x%04x, %p, %d): stub\n", has, pash, fdwConvert);
364 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
365 return MMSYSERR_ERROR;
368 /***********************************************************************
369 * acmStreamReset (MSACM.76)
371 MMRESULT16 WINAPI acmStreamReset16(
372 HACMSTREAM16 has, DWORD fdwReset)
374 FIXME("(0x%04x, %d): stub\n", has, fdwReset);
375 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
376 return MMSYSERR_ERROR;
379 /***********************************************************************
380 * acmStreamPrepareHeader (MSACM.77)
382 MMRESULT16 WINAPI acmStreamPrepareHeader16(
383 HACMSTREAM16 has, LPACMSTREAMHEADER16 pash, DWORD fdwPrepare)
385 FIXME("(0x%04x, %p, %d): stub\n", has, pash, fdwPrepare);
386 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
387 return MMSYSERR_ERROR;
390 /***********************************************************************
391 * acmStreamUnprepareHeader (MSACM.78)
393 MMRESULT16 WINAPI acmStreamUnprepareHeader16(
394 HACMSTREAM16 has, LPACMSTREAMHEADER16 pash, DWORD fdwUnprepare)
396 FIXME("(0x%04x, %p, %d): stub\n",
397 has, pash, fdwUnprepare
399 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
400 return MMSYSERR_ERROR;
403 /***********************************************************************
404 * ACMAPPLICATIONEXIT (MSACM.150)
405 * FIXME
406 * No documentation found.
409 /***********************************************************************
410 * ACMHUGEPAGELOCK (MSACM.175)
411 *FIXME
412 * No documentation found.
415 /***********************************************************************
416 * ACMHUGEPAGEUNLOCK (MSACM.176)
417 * FIXME
418 * No documentation found.
421 /***********************************************************************
422 * ACMOPENCONVERSION (MSACM.200)
423 * FIXME
424 * No documentation found.
427 /***********************************************************************
428 * ACMCLOSECONVERSION (MSACM.201)
429 * FIXME
430 * No documentation found.
433 /***********************************************************************
434 * ACMCONVERT (MSACM.202)
435 * FIXME
436 * No documentation found.
439 /***********************************************************************
440 * ACMCHOOSEFORMAT (MSACM.203)
441 * FIXME
442 * No documentation found.