1998-10-11 19:00:29 +02:00
|
|
|
/*
|
|
|
|
* MSACM32 library
|
|
|
|
*
|
|
|
|
* Copyright 1998 Patrik Stridvall
|
|
|
|
*/
|
|
|
|
|
1999-02-17 14:51:06 +01:00
|
|
|
#include "winbase.h"
|
1998-10-11 19:00:29 +02:00
|
|
|
#include "winerror.h"
|
1999-03-14 17:35:05 +01:00
|
|
|
#include "windef.h"
|
1999-05-14 10:17:14 +02:00
|
|
|
#include "debugtools.h"
|
1998-10-11 19:00:29 +02:00
|
|
|
#include "mmsystem.h"
|
|
|
|
#include "msacm.h"
|
|
|
|
#include "msacmdrv.h"
|
|
|
|
|
1999-04-19 16:56:29 +02:00
|
|
|
DEFAULT_DEBUG_CHANNEL(msacm)
|
|
|
|
|
1998-10-11 19:00:29 +02:00
|
|
|
/***********************************************************************
|
|
|
|
* acmFormatChooseA (MSACM32.23)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
MMRESULT WINAPI acmFormatChooseA(
|
|
|
|
PACMFORMATCHOOSEA pafmtc)
|
1998-10-11 19:00:29 +02:00
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%p): stub\n", pafmtc);
|
1998-10-11 19:00:29 +02:00
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return MMSYSERR_ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* acmFormatChooseW (MSACM32.24)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
MMRESULT WINAPI acmFormatChooseW(
|
|
|
|
PACMFORMATCHOOSEW pafmtc)
|
1998-10-11 19:00:29 +02:00
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(%p): stub\n", pafmtc);
|
1998-10-11 19:00:29 +02:00
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return MMSYSERR_ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* acmFormatDetailsA (MSACM32.25)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
MMRESULT WINAPI acmFormatDetailsA(
|
|
|
|
HACMDRIVER had, PACMFORMATDETAILSA pafd, DWORD fdwDetails)
|
1998-10-11 19:00:29 +02:00
|
|
|
{
|
|
|
|
if(fdwDetails & ~(ACM_FORMATDETAILSF_FORMAT))
|
|
|
|
return MMSYSERR_INVALFLAG;
|
|
|
|
|
|
|
|
/* FIXME
|
|
|
|
* How does the driver know if the ANSI or
|
|
|
|
* the UNICODE variant of PACMFORMATDETAILS is used?
|
|
|
|
* It might check cbStruct or does it only accept ANSI.
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
return (MMRESULT) acmDriverMessage(
|
1998-10-11 19:00:29 +02:00
|
|
|
had, ACMDM_FORMAT_DETAILS,
|
|
|
|
(LPARAM) pafd, (LPARAM) fdwDetails
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* acmFormatDetailsW (MSACM32.26)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
MMRESULT WINAPI acmFormatDetailsW(
|
|
|
|
HACMDRIVER had, PACMFORMATDETAILSW pafd, DWORD fdwDetails)
|
1998-10-11 19:00:29 +02:00
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(0x%08x, %p, %ld): stub\n", had, pafd, fdwDetails);
|
1998-10-11 19:00:29 +02:00
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return MMSYSERR_ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* acmFormatEnumA (MSACM32.27)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
MMRESULT WINAPI acmFormatEnumA(
|
|
|
|
HACMDRIVER had, PACMFORMATDETAILSA pafd,
|
|
|
|
ACMFORMATENUMCBA fnCallback, DWORD dwInstance, DWORD fdwEnum)
|
1998-10-11 19:00:29 +02:00
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(0x%08x, %p, %p, %ld, %ld): stub\n",
|
1998-10-11 19:00:29 +02:00
|
|
|
had, pafd, fnCallback, dwInstance, fdwEnum
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return MMSYSERR_ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* acmFormatEnumW (MSACM32.28)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
MMRESULT WINAPI acmFormatEnumW(
|
|
|
|
HACMDRIVER had, PACMFORMATDETAILSW pafd,
|
|
|
|
ACMFORMATENUMCBW fnCallback, DWORD dwInstance, DWORD fdwEnum)
|
1998-10-11 19:00:29 +02:00
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(0x%08x, %p, %p, %ld, %ld): stub\n",
|
1998-10-11 19:00:29 +02:00
|
|
|
had, pafd, fnCallback, dwInstance, fdwEnum
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return MMSYSERR_ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* acmFormatSuggest (MSACM32.29)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
MMRESULT WINAPI acmFormatSuggest(
|
|
|
|
HACMDRIVER had, PWAVEFORMATEX pwfxSrc, PWAVEFORMATEX pwfxDst,
|
1998-10-11 19:00:29 +02:00
|
|
|
DWORD cbwfxDst, DWORD fdwSuggest)
|
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(0x%08x, %p, %p, %ld, %ld): stub\n",
|
1998-10-11 19:00:29 +02:00
|
|
|
had, pwfxSrc, pwfxDst, cbwfxDst, fdwSuggest
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return MMSYSERR_ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* acmFormatTagDetailsA (MSACM32.30)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
MMRESULT WINAPI acmFormatTagDetailsA(
|
|
|
|
HACMDRIVER had, PACMFORMATTAGDETAILSA paftd, DWORD fdwDetails)
|
1998-10-11 19:00:29 +02:00
|
|
|
{
|
|
|
|
if(fdwDetails &
|
|
|
|
~(ACM_FORMATTAGDETAILSF_FORMATTAG|ACM_FORMATTAGDETAILSF_LARGESTSIZE))
|
|
|
|
return MMSYSERR_INVALFLAG;
|
|
|
|
|
|
|
|
/* FIXME
|
|
|
|
* How does the driver know if the ANSI or
|
|
|
|
* the UNICODE variant of PACMFORMATTAGDETAILS is used?
|
|
|
|
* It might check cbStruct or does it only accept ANSI.
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
return (MMRESULT) acmDriverMessage(
|
1998-10-11 19:00:29 +02:00
|
|
|
had, ACMDM_FORMATTAG_DETAILS,
|
|
|
|
(LPARAM) paftd, (LPARAM) fdwDetails
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* acmFormatTagDetailsW (MSACM32.31)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
MMRESULT WINAPI acmFormatTagDetailsW(
|
|
|
|
HACMDRIVER had, PACMFORMATTAGDETAILSW paftd, DWORD fdwDetails)
|
1998-10-11 19:00:29 +02:00
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(0x%08x, %p, %ld): stub\n", had, paftd, fdwDetails);
|
1998-10-11 19:00:29 +02:00
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return MMSYSERR_ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* acmFormatTagEnumA (MSACM32.32)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
MMRESULT WINAPI acmFormatTagEnumA(
|
|
|
|
HACMDRIVER had, PACMFORMATTAGDETAILSA paftd,
|
|
|
|
ACMFORMATTAGENUMCBA fnCallback, DWORD dwInstance, DWORD fdwEnum)
|
1998-10-11 19:00:29 +02:00
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(0x%08x, %p, %p, %ld, %ld): stub\n",
|
1998-10-11 19:00:29 +02:00
|
|
|
had, paftd, fnCallback, dwInstance, fdwEnum
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return MMSYSERR_ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* acmFormatTagEnumW (MSACM32.33)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
MMRESULT WINAPI acmFormatTagEnumW(
|
|
|
|
HACMDRIVER had, PACMFORMATTAGDETAILSW paftd,
|
|
|
|
ACMFORMATTAGENUMCBW fnCallback, DWORD dwInstance, DWORD fdwEnum)
|
1998-10-11 19:00:29 +02:00
|
|
|
{
|
1999-05-14 10:17:14 +02:00
|
|
|
FIXME("(0x%08x, %p, %p, %ld, %ld): stub\n",
|
1998-10-11 19:00:29 +02:00
|
|
|
had, paftd, fnCallback, dwInstance, fdwEnum
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return MMSYSERR_ERROR;
|
|
|
|
}
|