msacm_main.c 11.7 KB
Newer Older
1 2 3 4 5 6
/*
 *      MSACM library
 *
 *      Copyright 1998  Patrik Stridvall
 */

7
#include "winbase.h"
8
#include "winerror.h"
9
#include "msacm.h"
10
#include "debugtools.h"
11

12 13
DEFAULT_DEBUG_CHANNEL(msacm)

14 15 16 17 18
/***********************************************************************
 *           ACMGETVERSION (MSACM.7)
 */
DWORD WINAPI acmGetVersion16()
{
19
  FIXME("(): stub\n");
20 21 22 23 24 25 26 27 28 29 30
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return 0; /* FIXME */
}

/***********************************************************************
 *           ACMMETRICS (MSACM.8)
 */

MMRESULT16 WINAPI acmMetrics16(
  HACMOBJ16 hao, UINT16 uMetric, LPVOID pMetric)
{
31
  FIXME("(0x%04x, %d, %p): stub\n", hao, uMetric, pMetric);
32 33 34 35 36 37 38 39 40 41
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMDRIVERENUM (MSACM.10)
 */
MMRESULT16 WINAPI acmDriverEnum16(
  ACMDRIVERENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum)
{
42
  FIXME("(%p, %ld, %ld): stub\n",
43 44 45 46 47 48 49 50 51 52 53 54 55
    fnCallback, dwInstance, fdwEnum
  );
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMDRIVERDETAILS (MSACM.11)
 */

MMRESULT16 WINAPI acmDriverDetails16(
  HACMDRIVERID16 hadid, LPACMDRIVERDETAILS16 padd, DWORD fdwDetails)
{
56
  FIXME("(0x%04x, %p, %ld): stub\n", hadid, padd, fdwDetails);
57 58 59 60 61 62 63 64 65 66 67
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMDRIVERADD (MSACM.12)
 */
MMRESULT16 WINAPI acmDriverAdd16(
  LPHACMDRIVERID16 phadid, HINSTANCE16 hinstModule,
  LPARAM lParam, DWORD dwPriority, DWORD fdwAdd)
{
68
  FIXME("(%p, 0x%04x, %ld, %ld, %ld): stub\n",
69 70 71 72 73 74 75 76 77 78 79 80
    phadid, hinstModule, lParam, dwPriority, fdwAdd
  );
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMDRIVERREMOVE (MSACM.13)
 */
MMRESULT16 WINAPI acmDriverRemove16(
  HACMDRIVERID16 hadid, DWORD fdwRemove)
{
81
  FIXME("(0x%04x, %ld): stub\n", hadid, fdwRemove);
82 83 84 85 86 87 88 89 90 91
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMDRIVEROPEN (MSACM.14)
 */
MMRESULT16 WINAPI acmDriverOpen16(
  LPHACMDRIVER16 phad, HACMDRIVERID16 hadid, DWORD fdwOpen)
{
92
  FIXME("(%p, 0x%04x, %ld): stub\n", phad, hadid, fdwOpen);
93 94 95 96 97 98 99 100 101 102
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMDRIVERCLOSE (MSACM.15)
 */
MMRESULT16 WINAPI acmDriverClose16(
  HACMDRIVER16 had, DWORD fdwClose)
{
103
  FIXME("(0x%04x, %ld): stub\n", had, fdwClose);
104 105 106 107 108 109 110 111 112 113
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMDRIVERMESSAGE (MSACM.16)
 */
LRESULT WINAPI acmDriverMessage16(
  HACMDRIVER16 had, UINT16 uMsg, LPARAM lParam1, LPARAM lParam2)
{
114
  FIXME("(0x%04x, %d, %ld, %ld): stub\n",
115 116 117 118 119 120 121 122 123 124 125 126
    had, uMsg, lParam1, lParam2
  );
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return 0;
}

/***********************************************************************
 *           ACMDRIVERID (MSACM.17)
 */
MMRESULT16 WINAPI acmDriverID16(
  HACMOBJ16 hao, LPHACMDRIVERID16 phadid, DWORD fdwDriverID)
{
127
  FIXME("(0x%04x, %p, %ld): stub\n", hao, phadid, fdwDriverID);
128 129 130 131 132 133 134 135 136 137
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMDRIVERPRIORITY (MSACM.18)
 */
MMRESULT16 WINAPI acmDriverPriority16(
 HACMDRIVERID16 hadid, DWORD dwPriority, DWORD fdwPriority)
{
138
  FIXME("(0x%04x, %ld, %ld): stub\n",
139 140 141 142 143 144 145 146 147 148 149 150
    hadid, dwPriority, fdwPriority
  );
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMFORMATTAGDETAILS (MSACM.30)
 */
MMRESULT16 WINAPI acmFormatTagDetails16(
  HACMDRIVER16 had, LPACMFORMATTAGDETAILS16 paftd, DWORD fdwDetails)
{
151
  FIXME("(0x%04x, %p, %ld): stub\n", had, paftd, fdwDetails);
152 153 154 155 156 157 158 159 160 161 162
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMFORMATTAGENUM (MSACM.31)
 */
MMRESULT16 WINAPI acmFormatTagEnum16(
  HACMDRIVER16 had, LPACMFORMATTAGDETAILS16 paftd,
  ACMFORMATTAGENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum)
{
163
  FIXME("(0x%04x, %p, %p, %ld, %ld): stub\n",
164 165 166 167 168 169 170 171 172 173 174 175
    had, paftd, fnCallback, dwInstance, fdwEnum
  ); 
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMFORMATCHOOSE (MSACM.40)
 */
MMRESULT16 WINAPI acmFormatChoose16(
  LPACMFORMATCHOOSE16 pafmtc)
{
176
  FIXME("(%p): stub\n", pafmtc);
177 178 179 180 181 182 183 184 185 186
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMFORMATDETAILS (MSACM.41)
 */
MMRESULT16 WINAPI acmFormatDetails16(
  HACMDRIVER16 had, LPACMFORMATDETAILS16 pafd, DWORD fdwDetails)
{
187
  FIXME("(0x%04x, %p, %ld): stub\n", had, pafd, fdwDetails);
188 189 190 191 192 193 194 195 196 197 198
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMFORMATENUM (MSACM.42)
 */
MMRESULT16 WINAPI acmFormatEnum16(
  HACMDRIVER16 had, LPACMFORMATDETAILS16 pafd,
  ACMFORMATENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum)
{
199
  FIXME("(0x%04x, %p, %p, %ld, %ld): stub\n",
200 201 202 203 204 205 206 207 208 209
    had, pafd, fnCallback, dwInstance, fdwEnum
  );
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMFORMATSUGGEST (MSACM.45)
 */
MMRESULT16 WINAPI acmFormatSuggest16(
210 211
  HACMDRIVER16 had, LPWAVEFORMATEX pwfxSrc, 
  LPWAVEFORMATEX pwfxDst, DWORD cbwfxDst, DWORD fdwSuggest)
212
{
213
  FIXME("(0x%04x, %p, %p, %ld, %ld): stub\n",
214 215 216 217 218 219 220 221 222 223 224 225
    had, pwfxSrc, pwfxDst, cbwfxDst, fdwSuggest
  );
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMFILTERTAGDETAILS (MSACM.50)
 */
MMRESULT16 WINAPI acmFilterTagDetails16(
  HACMDRIVER16 had, LPACMFILTERTAGDETAILS16 paftd, DWORD fdwDetails)
{
226
  FIXME("(0x%04x, %p, %ld): stub\n", had, paftd, fdwDetails);
227 228 229 230 231 232 233 234 235 236 237
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMFILTERTAGENUM (MSACM.51)
 */
MMRESULT16 WINAPI acmFilterTagEnum16(
  HACMDRIVER16 had, LPACMFILTERTAGDETAILS16 paftd,
  ACMFILTERTAGENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum)
{
238
  FIXME("(0x%04x, %p, %p, %ld, %ld): stub\n",
239 240 241 242 243 244 245 246 247 248 249 250
    had, paftd, fnCallback, dwInstance, fdwEnum
  );
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMFILTERCHOOSE (MSACM.60)
 */
MMRESULT16 WINAPI acmFilterChoose16(
  LPACMFILTERCHOOSE16 pafltrc)
{
251
  FIXME("(%p): stub\n", pafltrc);
252 253 254 255 256 257 258 259 260 261
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMFILTERDETAILS (MSACM.61)
 */
MMRESULT16 WINAPI acmFilterDetails16(
  HACMDRIVER16 had, LPACMFILTERDETAILS16 pafd, DWORD fdwDetails)
{
262
  FIXME("(0x%04x, %p, %ld): stub\n", had, pafd, fdwDetails);
263 264 265 266 267 268 269 270 271 272 273
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMFILTERENUM (MSACM.62)
 */
MMRESULT16 WINAPI acmFilterEnum16(
  HACMDRIVER16 had, LPACMFILTERDETAILS16 pafd,
  ACMFILTERENUMCB16 fnCallback, DWORD dwInstance, DWORD fdwEnum)
{
274
  FIXME("(0x%04x, %p, %p, %ld, %ld): stub\n",
275 276 277 278 279 280 281 282 283 284 285
    had, pafd, fnCallback, dwInstance, fdwEnum
  );
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMSTREAMOPEN (MSACM.70)
 */
MMRESULT16 WINAPI acmStreamOpen16(
  LPHACMSTREAM16 phas, HACMDRIVER16 had,
286 287
  LPWAVEFORMATEX pwfxSrc, LPWAVEFORMATEX pwfxDst,
  LPWAVEFILTER pwfltr, DWORD dwCallback,
288 289
  DWORD dwInstance, DWORD fdwOpen)
{
290
  FIXME("(%p, 0x%04x, %p, %p, %p, %ld, %ld, %ld): stub\n",
291 292 293 294 295 296 297 298 299 300 301 302 303
    phas, had, pwfxSrc, pwfxDst, pwfltr,
    dwCallback, dwInstance, fdwOpen
  );
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMSTREAMCLOSE (MSACM.71)
 */
MMRESULT16 WINAPI acmStreamClose16(
  HACMSTREAM16 has, DWORD fdwClose)
{
304
  FIXME("(0x%04x, %ld): stub\n", has, fdwClose);
305 306 307 308 309 310 311 312 313 314 315
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMSTREAMSIZE (MSACM.72)
 */
MMRESULT16 WINAPI acmStreamSize16(
  HACMSTREAM16 has, DWORD cbInput, 
  LPDWORD pdwOutputBytes, DWORD fdwSize)
{
316
  FIXME("(0x%04x, %ld, %p, %ld): stub\n",
317 318 319 320 321 322 323 324 325 326 327 328
    has, cbInput, pdwOutputBytes, fdwSize
  );
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMSTREAMCONVERT (MSACM.75)
 */
MMRESULT16 WINAPI acmStreamConvert16(
  HACMSTREAM16 has, LPACMSTREAMHEADER16 pash, DWORD fdwConvert)
{
329
  FIXME("(0x%04x, %p, %ld): stub\n", has, pash, fdwConvert);
330 331 332 333 334 335 336 337 338 339
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMSTREAMRESET (MSACM.76)
 */
MMRESULT16 WINAPI acmStreamReset16(
  HACMSTREAM16 has, DWORD fdwReset)
{
340
  FIXME("(0x%04x, %ld): stub\n", has, fdwReset);
341 342 343 344 345 346 347 348 349 350
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMSTREAMPREPAREHEADER (MSACM.77)
 */
MMRESULT16 WINAPI acmStreamPrepareHeader16(
  HACMSTREAM16 has, LPACMSTREAMHEADER16 pash, DWORD fdwPrepare)
{
351
  FIXME("(0x%04x, %p, %ld): stub\n", has, pash, fdwPrepare);
352 353 354 355 356 357 358 359 360 361
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMSTREAMUNPREPAREHEADER (MSACM.78)
 */
MMRESULT16 WINAPI acmStreamUnprepareHeader16(
  HACMSTREAM16 has, LPACMSTREAMHEADER16 pash, DWORD fdwUnprepare)
{
362
  FIXME("(0x%04x, %p, %ld): stub\n",
363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411
    has, pash, fdwUnprepare
  );
  SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
  return MMSYSERR_ERROR;
}

/***********************************************************************
 *           ACMAPPLICATIONEXIT (MSACM.150)
 * FIXME
 *   No documentation found.
 */

/***********************************************************************
 *           ACMHUGEPAGELOCK (MSACM.175)
 * FIXME
 *   No documentation found.
 */

/***********************************************************************
 *           ACMHUGEPAGEUNLOCK (MSACM.176)
 * FIXME
 *   No documentation found.
 */

/***********************************************************************
 *           ACMOPENCONVERSION (MSACM.200)
 * FIXME
 *   No documentation found.
 */

/***********************************************************************
 *           ACMCLOSECONVERSION (MSACM.201)
 * FIXME
 *   No documentation found.
 */

/***********************************************************************
 *           ACMCONVERT (MSACM.202)
 * FIXME
 *   No documentation found.
 */

/***********************************************************************
 *           ACMCHOOSEFORMAT (MSACM.203)
 * FIXME
 *   No documentation found.
 */