Started the implementation of MSACM.DLL and MSACM32.DLL.
[wine/multimedia.git] / dlls / msacm32 / format.c
blob5495c920addec8862dabf10cdca3292f4cce7086
1 /*
2 * MSACM32 library
4 * Copyright 1998 Patrik Stridvall
5 */
7 #include "windows.h"
8 #include "winerror.h"
9 #include "wintypes.h"
10 #include "debug.h"
11 #include "mmsystem.h"
12 #include "msacm.h"
13 #include "msacmdrv.h"
15 /***********************************************************************
16 * acmFormatChooseA (MSACM32.23)
18 MMRESULT32 WINAPI acmFormatChoose32A(
19 PACMFORMATCHOOSE32A pafmtc)
21 FIXME(msacm, "(%p): stub\n", pafmtc);
22 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
23 return MMSYSERR_ERROR;
26 /***********************************************************************
27 * acmFormatChooseW (MSACM32.24)
29 MMRESULT32 WINAPI acmFormatChoose32W(
30 PACMFORMATCHOOSE32W pafmtc)
32 FIXME(msacm, "(%p): stub\n", pafmtc);
33 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
34 return MMSYSERR_ERROR;
37 /***********************************************************************
38 * acmFormatDetailsA (MSACM32.25)
40 MMRESULT32 WINAPI acmFormatDetails32A(
41 HACMDRIVER32 had, PACMFORMATDETAILS32A pafd, DWORD fdwDetails)
43 if(fdwDetails & ~(ACM_FORMATDETAILSF_FORMAT))
44 return MMSYSERR_INVALFLAG;
46 /* FIXME
47 * How does the driver know if the ANSI or
48 * the UNICODE variant of PACMFORMATDETAILS is used?
49 * It might check cbStruct or does it only accept ANSI.
51 return (MMRESULT32) acmDriverMessage32(
52 had, ACMDM_FORMAT_DETAILS,
53 (LPARAM) pafd, (LPARAM) fdwDetails
57 /***********************************************************************
58 * acmFormatDetailsW (MSACM32.26)
60 MMRESULT32 WINAPI acmFormatDetails32W(
61 HACMDRIVER32 had, PACMFORMATDETAILS32W pafd, DWORD fdwDetails)
63 FIXME(msacm, "(0x%08x, %p, %ld): stub\n", had, pafd, fdwDetails);
64 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
65 return MMSYSERR_ERROR;
68 /***********************************************************************
69 * acmFormatEnumA (MSACM32.27)
71 MMRESULT32 WINAPI acmFormatEnum32A(
72 HACMDRIVER32 had, PACMFORMATDETAILS32A pafd,
73 ACMFORMATENUMCB32A fnCallback, DWORD dwInstance, DWORD fdwEnum)
75 FIXME(msacm, "(0x%08x, %p, %p, %ld, %ld): stub\n",
76 had, pafd, fnCallback, dwInstance, fdwEnum
78 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
79 return MMSYSERR_ERROR;
82 /***********************************************************************
83 * acmFormatEnumW (MSACM32.28)
85 MMRESULT32 WINAPI acmFormatEnum32W(
86 HACMDRIVER32 had, PACMFORMATDETAILS32W pafd,
87 ACMFORMATENUMCB32W fnCallback, DWORD dwInstance, DWORD fdwEnum)
89 FIXME(msacm, "(0x%08x, %p, %p, %ld, %ld): stub\n",
90 had, pafd, fnCallback, dwInstance, fdwEnum
92 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
93 return MMSYSERR_ERROR;
96 /***********************************************************************
97 * acmFormatSuggest (MSACM32.29)
99 MMRESULT32 WINAPI acmFormatSuggest32(
100 HACMDRIVER32 had, PWAVEFORMATEX32 pwfxSrc, PWAVEFORMATEX32 pwfxDst,
101 DWORD cbwfxDst, DWORD fdwSuggest)
103 FIXME(msacm, "(0x%08x, %p, %p, %ld, %ld): stub\n",
104 had, pwfxSrc, pwfxDst, cbwfxDst, fdwSuggest
106 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
107 return MMSYSERR_ERROR;
110 /***********************************************************************
111 * acmFormatTagDetailsA (MSACM32.30)
113 MMRESULT32 WINAPI acmFormatTagDetails32A(
114 HACMDRIVER32 had, PACMFORMATTAGDETAILS32A paftd, DWORD fdwDetails)
116 if(fdwDetails &
117 ~(ACM_FORMATTAGDETAILSF_FORMATTAG|ACM_FORMATTAGDETAILSF_LARGESTSIZE))
118 return MMSYSERR_INVALFLAG;
120 /* FIXME
121 * How does the driver know if the ANSI or
122 * the UNICODE variant of PACMFORMATTAGDETAILS is used?
123 * It might check cbStruct or does it only accept ANSI.
125 return (MMRESULT32) acmDriverMessage32(
126 had, ACMDM_FORMATTAG_DETAILS,
127 (LPARAM) paftd, (LPARAM) fdwDetails
131 /***********************************************************************
132 * acmFormatTagDetailsW (MSACM32.31)
134 MMRESULT32 WINAPI acmFormatTagDetails32W(
135 HACMDRIVER32 had, PACMFORMATTAGDETAILS32W paftd, DWORD fdwDetails)
137 FIXME(msacm, "(0x%08x, %p, %ld): stub\n", had, paftd, fdwDetails);
138 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
139 return MMSYSERR_ERROR;
142 /***********************************************************************
143 * acmFormatTagEnumA (MSACM32.32)
145 MMRESULT32 WINAPI acmFormatTagEnum32A(
146 HACMDRIVER32 had, PACMFORMATTAGDETAILS32A paftd,
147 ACMFORMATTAGENUMCB32A fnCallback, DWORD dwInstance, DWORD fdwEnum)
149 FIXME(msacm, "(0x%08x, %p, %p, %ld, %ld): stub\n",
150 had, paftd, fnCallback, dwInstance, fdwEnum
152 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
153 return MMSYSERR_ERROR;
156 /***********************************************************************
157 * acmFormatTagEnumW (MSACM32.33)
159 MMRESULT32 WINAPI acmFormatTagEnum32W(
160 HACMDRIVER32 had, PACMFORMATTAGDETAILS32W paftd,
161 ACMFORMATTAGENUMCB32W fnCallback, DWORD dwInstance, DWORD fdwEnum)
163 FIXME(msacm, "(0x%08x, %p, %p, %ld, %ld): stub\n",
164 had, paftd, fnCallback, dwInstance, fdwEnum
166 SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
167 return MMSYSERR_ERROR;