Author: janderwald
Date: Tue Oct 6 10:47:27 2009
New Revision: 43311
URL:
http://svn.reactos.org/svn/reactos?rev=43311&view=rev
Log:
- Implement WIDM_OPEN, WIDM_CLOSE, WIDM_PREPARE, WIDM_UNPREPARE, WIDM_RESET for wave in
devices
- Original code by Silverblade
Modified:
trunk/reactos/lib/drivers/sound/mmebuddy/wave/widMessage.c
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] Tue Oct 6
10:47:27 2009
@@ -53,6 +53,42 @@
Parameter2);
break;
}
+ case WIDM_OPEN :
+ {
+ Result = MmeOpenWaveDevice(WAVE_IN_DEVICE_TYPE,
+ DeviceId,
+ (LPWAVEOPENDESC) Parameter1,
+ Parameter2,
+ (DWORD*) PrivateHandle);
+ break;
+ }
+
+ case WIDM_CLOSE :
+ {
+ Result = MmeCloseDevice(PrivateHandle);
+
+ break;
+ }
+
+ case WIDM_PREPARE :
+ {
+ /* TODO: Do we need to pass 2nd parameter? */
+ Result = MmePrepareWaveHeader(PrivateHandle, Parameter1);
+ break;
+ }
+
+ case WIDM_UNPREPARE :
+ {
+ Result = MmeUnprepareWaveHeader(PrivateHandle, Parameter1);
+ break;
+ }
+
+ case WIDM_RESET :
+ {
+ /* Stop playback, reset position to zero */
+ Result = MmeResetWavePlayback(PrivateHandle);
+ break;
+ }
}
SND_TRACE(L"widMessage returning MMRESULT %d\n", Result);