implement soundSetData
Modified: trunk/reactos/lib/mmdrv/wave.c

Modified: trunk/reactos/lib/mmdrv/wave.c
--- trunk/reactos/lib/mmdrv/wave.c	2005-11-21 21:51:30 UTC (rev 19427)
+++ trunk/reactos/lib/mmdrv/wave.c	2005-11-21 22:01:13 UTC (rev 19428)
@@ -732,7 +732,19 @@
 MMRESULT soundSetData(UINT DeviceType, UINT DeviceId, UINT Length, PBYTE Data,
                      ULONG Ioctl)
 {
-	return MMSYSERR_NOERROR;
+    HANDLE hDevcie;
+    MMRESULT Result;
+    DWORD BytesReturned;
+
+    Result = OpenDevice(DeviceType, DeviceId, &hDevcie, GENERIC_READ);
+    if (Result != MMSYSERR_NOERROR) 
+         return Result;
+
+    Result = DeviceIoControl(hDevcie, Ioctl, Data, Length, NULL, 0, &BytesReturned, NULL) ? 
+                             MMSYSERR_NOERROR : TranslateStatus();
+    CloseHandle(hDevcie);
+
+	return Result;
 }
 MMRESULT soundGetData(UINT DeviceType, UINT DeviceId, UINT Length, PBYTE Data,
                      ULONG Ioctl)