--- trunk/reactos/lib/mmdrv/wave.c 2005-11-21 00:16:30 UTC (rev 19398)
+++ trunk/reactos/lib/mmdrv/wave.c 2005-11-21 00:56:13 UTC (rev 19399)
@@ -86,11 +86,7 @@
}
-//FIXME: Params are MS-specific
-static void CallbackWaveDevice(PWAVEALLOC pWave, DWORD msg, DWORD dw1)
-{
-}
//FIXME: Params are MS-specific
static MMRESULT WriteWaveDevice(LPWAVEHDR pHdr, PWAVEALLOC pClient)
@@ -189,7 +185,15 @@
return Result;
}
else
- CallbackWaveDevice(pTask, WOM_CLOSE, 0L);
+
+ {
+ if (pTask->dwCallback)
+ {
+ DriverCallback(pTask->dwCallback, HIWORD(pTask->dwFlags), (HDRVR)pTask->hWave,
+ WOM_CLOSE, pTask->dwInstance, 0L, 0L);
+ }
+ }
+
// 2. Close the device
if (pTask->hDev != INVALID_HANDLE_VALUE) {
@@ -235,8 +239,6 @@
}
case WODM_PAUSE:
-
-
DPRINT("WODM_PAUSE");
pTask->AuxParam.State = WAVE_DD_STOP;