Author: janderwald
Date: Wed Oct 28 00:28:09 2009
New Revision: 43799
URL:
http://svn.reactos.org/svn/reactos?rev=43799&view=rev
Log:
[WDMAUD.DRV][MMEBUDDY]
- Implement support for DRV_QUERYDEVICEINTERFACESIZE, DRV_QUERYDEVICEINTERFACE for
recording / mixer / midi-in midi-out
Modified:
trunk/reactos/dll/win32/wdmaud.drv/wdmaud.c
trunk/reactos/lib/drivers/sound/mmebuddy/midi/midMessage.c
trunk/reactos/lib/drivers/sound/mmebuddy/midi/modMessage.c
trunk/reactos/lib/drivers/sound/mmebuddy/mixer/mxdMessage.c
trunk/reactos/lib/drivers/sound/mmebuddy/wave/widMessage.c
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] Wed Oct 28 00:28:09 2009
@@ -609,6 +609,13 @@
(LPVOID) &DeviceInfo,
sizeof(WDMAUD_DEVICE_INFO),
NULL);
+
+ if ( MMSUCCESS(Result) && InterfaceLength > 2)
+ {
+ Interface[1] = L'\\';
+ Interface[InterfaceLength-1] = L'\0';
+ }
+
return Result;
}
Modified: trunk/reactos/lib/drivers/sound/mmebuddy/midi/midMessage.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/sound/mmebuddy…
==============================================================================
--- trunk/reactos/lib/drivers/sound/mmebuddy/midi/midMessage.c [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/sound/mmebuddy/midi/midMessage.c [iso-8859-1] Wed Oct 28
00:28:09 2009
@@ -52,6 +52,19 @@
Parameter2);
break;
}
+
+ case DRV_QUERYDEVICEINTERFACESIZE :
+ {
+ Result = MmeGetDeviceInterfaceString(MIDI_IN_DEVICE_TYPE, DeviceId, NULL, 0,
(DWORD*)Parameter1); //FIXME DWORD_PTR
+ break;
+ }
+
+ case DRV_QUERYDEVICEINTERFACE :
+ {
+ Result = MmeGetDeviceInterfaceString(MIDI_IN_DEVICE_TYPE, DeviceId,
(LPWSTR)Parameter1, Parameter2, NULL); //FIXME DWORD_PTR
+ break;
+ }
+
}
SND_TRACE(L"midMessage returning MMRESULT %d\n", Result);
Modified: trunk/reactos/lib/drivers/sound/mmebuddy/midi/modMessage.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/sound/mmebuddy…
==============================================================================
--- trunk/reactos/lib/drivers/sound/mmebuddy/midi/modMessage.c [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/sound/mmebuddy/midi/modMessage.c [iso-8859-1] Wed Oct 28
00:28:09 2009
@@ -52,6 +52,18 @@
Parameter2);
break;
}
+
+ case DRV_QUERYDEVICEINTERFACESIZE :
+ {
+ Result = MmeGetDeviceInterfaceString(MIDI_OUT_DEVICE_TYPE, DeviceId, NULL, 0,
(DWORD*)Parameter1); //FIXME DWORD_PTR
+ break;
+ }
+
+ case DRV_QUERYDEVICEINTERFACE :
+ {
+ Result = MmeGetDeviceInterfaceString(MIDI_OUT_DEVICE_TYPE, DeviceId,
(LPWSTR)Parameter1, Parameter2, NULL); //FIXME DWORD_PTR
+ break;
+ }
}
SND_TRACE(L"modMessage returning MMRESULT %d\n", Result);
Modified: trunk/reactos/lib/drivers/sound/mmebuddy/mixer/mxdMessage.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/sound/mmebuddy…
==============================================================================
--- trunk/reactos/lib/drivers/sound/mmebuddy/mixer/mxdMessage.c [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/sound/mmebuddy/mixer/mxdMessage.c [iso-8859-1] Wed Oct 28
00:28:09 2009
@@ -243,6 +243,19 @@
break;
}
+
+ case DRV_QUERYDEVICEINTERFACESIZE :
+ {
+ Result = MmeGetDeviceInterfaceString(MIXER_DEVICE_TYPE, DeviceId, NULL, 0,
(DWORD*)Parameter1); //FIXME DWORD_PTR
+ break;
+ }
+
+ case DRV_QUERYDEVICEINTERFACE :
+ {
+ Result = MmeGetDeviceInterfaceString(MIXER_DEVICE_TYPE, DeviceId,
(LPWSTR)Parameter1, Parameter2, NULL); //FIXME DWORD_PTR
+ break;
+ }
+
}
SND_TRACE(L"mxdMessage returning MMRESULT %d\n", Result);
Modified: trunk/reactos/lib/drivers/sound/mmebuddy/wave/widMessage.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/lib/drivers/sound/mmebuddy…
==============================================================================
--- trunk/reactos/lib/drivers/sound/mmebuddy/wave/widMessage.c [iso-8859-1] (original)
+++ trunk/reactos/lib/drivers/sound/mmebuddy/wave/widMessage.c [iso-8859-1] Wed Oct 28
00:28:09 2009
@@ -109,6 +109,19 @@
break;
}
+ case DRV_QUERYDEVICEINTERFACESIZE :
+ {
+ Result = MmeGetDeviceInterfaceString(WAVE_IN_DEVICE_TYPE, DeviceId, NULL, 0,
(DWORD*)Parameter1); //FIXME DWORD_PTR
+ break;
+ }
+
+ case DRV_QUERYDEVICEINTERFACE :
+ {
+ Result = MmeGetDeviceInterfaceString(WAVE_IN_DEVICE_TYPE, DeviceId,
(LPWSTR)Parameter1, Parameter2, NULL); //FIXME DWORD_PTR
+ break;
+ }
+
+
}
SND_TRACE(L"widMessage returning MMRESULT %d\n", Result);