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"
|
|
|
|
#include "mmsystem.h"
|
|
|
|
#include "msacm.h"
|
|
|
|
#include "msacmdrv.h"
|
1999-02-19 11:37:02 +01:00
|
|
|
#include "debug.h"
|
1998-10-11 19:00:29 +02:00
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* acmFilterChooseA (MSACM32.13)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
MMRESULT WINAPI acmFilterChooseA(
|
|
|
|
PACMFILTERCHOOSEA pafltrc)
|
1998-10-11 19:00:29 +02:00
|
|
|
{
|
|
|
|
FIXME(msacm, "(%p): stub\n", pafltrc);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return MMSYSERR_ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* acmFilterChooseW (MSACM32.14)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
MMRESULT WINAPI acmFilterChooseW(
|
|
|
|
PACMFILTERCHOOSEW pafltrc)
|
1998-10-11 19:00:29 +02:00
|
|
|
{
|
|
|
|
FIXME(msacm, "(%p): stub\n", pafltrc);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return MMSYSERR_ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* acmFilterDetailsA (MSACM32.15)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
MMRESULT WINAPI acmFilterDetailsA(
|
|
|
|
HACMDRIVER had, PACMFILTERDETAILSA pafd, DWORD fdwDetails)
|
1998-10-11 19:00:29 +02:00
|
|
|
{
|
|
|
|
if(fdwDetails & ~(ACM_FILTERDETAILSF_FILTER))
|
|
|
|
return MMSYSERR_INVALFLAG;
|
|
|
|
|
|
|
|
/* FIXME
|
|
|
|
* How does the driver know if the ANSI or
|
|
|
|
* the UNICODE variant of PACMFILTERDETAILS 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_FILTER_DETAILS,
|
|
|
|
(LPARAM) pafd, (LPARAM) fdwDetails
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* acmFilterDetailsW (MSACM32.16)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
MMRESULT WINAPI acmFilterDetailsW(
|
|
|
|
HACMDRIVER had, PACMFILTERDETAILSW pafd, DWORD fdwDetails)
|
1998-10-11 19:00:29 +02:00
|
|
|
{
|
|
|
|
FIXME(msacm, "(0x%08x, %p, %ld): stub\n", had, pafd, fdwDetails);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return MMSYSERR_ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* acmFilterEnumA (MSACM32.17)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
MMRESULT WINAPI acmFilterEnumA(
|
|
|
|
HACMDRIVER had, PACMFILTERDETAILSA pafd,
|
|
|
|
ACMFILTERENUMCBA fnCallback, DWORD dwInstance, DWORD fdwEnum)
|
1998-10-11 19:00:29 +02:00
|
|
|
{
|
|
|
|
FIXME(msacm, "(0x%08x, %p, %p, %ld, %ld): stub\n",
|
|
|
|
had, pafd, fnCallback, dwInstance, fdwEnum
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return MMSYSERR_ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* acmFilterEnumW (MSACM32.18)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
MMRESULT WINAPI acmFilterEnumW(
|
|
|
|
HACMDRIVER had, PACMFILTERDETAILSW pafd,
|
|
|
|
ACMFILTERENUMCBW fnCallback, DWORD dwInstance, DWORD fdwEnum)
|
1998-10-11 19:00:29 +02:00
|
|
|
{
|
|
|
|
FIXME(msacm, "(0x%08x, %p, %p, %ld, %ld): stub\n",
|
|
|
|
had, pafd, fnCallback, dwInstance, fdwEnum
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return MMSYSERR_ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* acmFilterTagDetailsA (MSACM32.19)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
MMRESULT WINAPI acmFilterTagDetailsA(
|
|
|
|
HACMDRIVER had, PACMFILTERTAGDETAILSA paftd, DWORD fdwDetails)
|
1998-10-11 19:00:29 +02:00
|
|
|
{
|
|
|
|
if(fdwDetails &
|
|
|
|
~(ACM_FILTERTAGDETAILSF_FILTERTAG|
|
|
|
|
ACM_FILTERTAGDETAILSF_LARGESTSIZE))
|
|
|
|
return MMSYSERR_INVALFLAG;
|
|
|
|
|
|
|
|
/* FIXME
|
|
|
|
* How does the driver know if the ANSI or
|
|
|
|
* the UNICODE variant of PACMFILTERTAGDETAILS 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_FILTERTAG_DETAILS,
|
|
|
|
(LPARAM) paftd, (LPARAM) fdwDetails
|
|
|
|
);
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* acmFilterTagDetailsW (MSACM32.20)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
MMRESULT WINAPI acmFilterTagDetailsW(
|
|
|
|
HACMDRIVER had, PACMFILTERTAGDETAILSW paftd, DWORD fdwDetails)
|
1998-10-11 19:00:29 +02:00
|
|
|
{
|
|
|
|
FIXME(msacm, "(0x%08x, %p, %ld): stub\n", had, paftd, fdwDetails);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return MMSYSERR_ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* acmFilterTagEnumA (MSACM32.21)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
MMRESULT WINAPI acmFilterTagEnumA(
|
|
|
|
HACMDRIVER had, PACMFILTERTAGDETAILSA paftd,
|
|
|
|
ACMFILTERTAGENUMCBA fnCallback, DWORD dwInstance, DWORD fdwEnum)
|
1998-10-11 19:00:29 +02:00
|
|
|
{
|
|
|
|
FIXME(msacm, "(0x%08x, %p, %p, %ld, %ld): stub\n",
|
|
|
|
had, paftd, fnCallback, dwInstance, fdwEnum
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return MMSYSERR_ERROR;
|
|
|
|
}
|
|
|
|
|
|
|
|
/***********************************************************************
|
|
|
|
* acmFilterTagEnumW (MSACM32.22)
|
|
|
|
*/
|
1999-02-26 12:11:13 +01:00
|
|
|
MMRESULT WINAPI acmFilterTagEnumW(
|
|
|
|
HACMDRIVER had, PACMFILTERTAGDETAILSW paftd,
|
|
|
|
ACMFILTERTAGENUMCBW fnCallback, DWORD dwInstance, DWORD fdwEnum)
|
1998-10-11 19:00:29 +02:00
|
|
|
{
|
|
|
|
FIXME(msacm, "(0x%08x, %p, %p, %ld, %ld): stub\n",
|
|
|
|
had, paftd, fnCallback, dwInstance, fdwEnum
|
|
|
|
);
|
|
|
|
SetLastError(ERROR_CALL_NOT_IMPLEMENTED);
|
|
|
|
return MMSYSERR_ERROR;
|
|
|
|
}
|