Author: dchapyshev
Date: Sun May 25 05:41:08 2008
New Revision: 33694
URL:
http://svn.reactos.org/svn/reactos?rev=33694&view=rev
Log:
- Start implementing WDM Audio driver mapper
Modified:
trunk/reactos/dll/win32/wdmaud.drv/wdmaud.c
trunk/reactos/dll/win32/wdmaud.drv/wdmaud.rbuild
Modified: trunk/reactos/dll/win32/wdmaud.drv/wdmaud.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/wdmaud.drv/wdmau…
==============================================================================
--- trunk/reactos/dll/win32/wdmaud.drv/wdmaud.c [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/wdmaud.drv/wdmaud.c [iso-8859-1] Sun May 25 05:41:08 2008
@@ -13,6 +13,9 @@
#include <windows.h>
#include <mmsystem.h>
+#include <mmddk.h>
+#include <mmreg.h>
+#include <debug.h>
DWORD APIENTRY
mxdMessage(UINT uDevice,
@@ -21,6 +24,38 @@
DWORD dwParam1,
DWORD dwParam2)
{
+ DPRINT1("mxdMessage(%04X, %04X, %08X, %08X, %08X);\n", uDevice, uMsg,
dwUser, dwParam1, dwParam2);
+
+ switch (uMsg)
+ {
+ case MXDM_INIT:
+ break;
+
+ case MXDM_GETNUMDEVS:
+ break;
+
+ case MXDM_GETDEVCAPS:
+ break;
+
+ case MXDM_OPEN:
+ break;
+
+ case MXDM_CLOSE:
+ break;
+
+ case MXDM_GETLINEINFO:
+ break;
+
+ case MXDM_GETLINECONTROLS:
+ break;
+
+ case MXDM_GETCONTROLDETAILS:
+ break;
+
+ case MXDM_SETCONTROLDETAILS:
+ break;
+ }
+
return MMSYSERR_NOTSUPPORTED;
}
@@ -31,6 +66,30 @@
DWORD dwParam1,
DWORD dwParam2)
{
+ DPRINT1("auxMessage(%04X, %04X, %08X, %08X, %08X);\n", uDevice, uMsg,
dwUser, dwParam1, dwParam2);
+
+ switch (uMsg)
+ {
+ case AUXDM_GETDEVCAPS:
+
+ break;
+
+ case AUXDM_GETNUMDEVS:
+
+ break;
+
+ case AUXDM_GETVOLUME:
+
+ break;
+
+ case AUXDM_SETVOLUME:
+
+ break;
+
+ default:
+ return MMSYSERR_NOTSUPPORTED;
+ }
+
return MMSYSERR_NOTSUPPORTED;
}
@@ -41,6 +100,62 @@
DWORD dwParam1,
DWORD dwParam2)
{
+ DPRINT1("wodMessage(%04X, %04X, %08X, %08X, %08X);\n", uDevice, uMsg,
dwUser, dwParam1, dwParam2);
+
+ switch (uMsg)
+ {
+ case WODM_GETNUMDEVS:
+ break;
+
+ case WODM_GETDEVCAPS:
+ break;
+
+ case WODM_OPEN:
+ break;
+
+ case WODM_CLOSE:
+ break;
+
+ case WODM_WRITE:
+ break;
+
+ case WODM_PAUSE:
+ break;
+
+ case WODM_RESTART:
+ break;
+
+ case WODM_RESET:
+ break;
+
+ case WODM_BREAKLOOP:
+ break;
+
+ case WODM_GETPOS:
+ break;
+
+ case WODM_SETPITCH:
+ break;
+
+ case WODM_SETVOLUME:
+ break;
+
+ case WODM_SETPLAYBACKRATE:
+ break;
+
+ case WODM_GETPITCH:
+ break;
+
+ case WODM_GETVOLUME:
+ break;
+
+ case WODM_GETPLAYBACKRATE:
+ break;
+
+ default:
+ return MMSYSERR_NOTSUPPORTED;
+ }
+
return MMSYSERR_NOTSUPPORTED;
}
@@ -51,6 +166,41 @@
DWORD dwParam1,
DWORD dwParam2)
{
+ DPRINT1("widMessage(%04X, %04X, %08X, %08X, %08X);\n", uDevice, uMsg,
dwUser, dwParam1, dwParam2);
+
+ switch (uMsg)
+ {
+ case WIDM_GETNUMDEVS:
+ break;
+
+ case WIDM_GETDEVCAPS:
+ break;
+
+ case WIDM_OPEN:
+ break;
+
+ case WIDM_CLOSE:
+ break;
+
+ case WIDM_ADDBUFFER:
+ break;
+
+ case WIDM_STOP:
+ break;
+
+ case WIDM_START:
+ break;
+
+ case WIDM_RESET:
+ break;
+
+ case WIDM_GETPOS:
+ break;
+
+ default:
+ return MMSYSERR_NOTSUPPORTED;
+ }
+
return MMSYSERR_NOTSUPPORTED;
}
@@ -61,6 +211,8 @@
DWORD dwParam1,
DWORD dwParam2)
{
+ DPRINT1("modMessage(%04X, %04X, %08X, %08X, %08X);\n", uDevice, uMsg,
dwUser, dwParam1, dwParam2);
+
return MMSYSERR_NOTSUPPORTED;
}
Modified: trunk/reactos/dll/win32/wdmaud.drv/wdmaud.rbuild
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/dll/win32/wdmaud.drv/wdmau…
==============================================================================
--- trunk/reactos/dll/win32/wdmaud.drv/wdmaud.rbuild [iso-8859-1] (original)
+++ trunk/reactos/dll/win32/wdmaud.drv/wdmaud.rbuild [iso-8859-1] Sun May 25 05:41:08
2008
@@ -1,4 +1,4 @@
-<module name="wdmaud.drv" type="win32dll"
baseaddress="${BASEADDRESS_RASDLG}" installbase="system32"
installname="wdmaud.drv">
+<module name="wdmaud.drv" type="win32dll"
baseaddress="${BASEADDRESS_WDMAUD}" installbase="system32"
installname="wdmaud.drv">
<importlibrary definition="wdmaud.def" />
<include base="wdmaud.drv">.</include>
<define name="_DISABLE_TIDENTS" />