- Partly implement WIDM_ADDBUFFER
authorJohannes Anderwald <johannes.anderwald@reactos.org>
Tue, 6 Oct 2009 09:54:10 +0000 (09:54 +0000)
committerJohannes Anderwald <johannes.anderwald@reactos.org>
Tue, 6 Oct 2009 09:54:10 +0000 (09:54 +0000)
svn path=/trunk/; revision=43313

reactos/lib/drivers/sound/mmebuddy/wave/widMessage.c

index d364297..366ab3c 100644 (file)
@@ -47,6 +47,7 @@ widMessage(
 
         case WIDM_GETDEVCAPS :
         {
 
         case WIDM_GETDEVCAPS :
         {
+
             Result = MmeGetSoundDeviceCapabilities(WAVE_IN_DEVICE_TYPE,
                                                    DeviceId,
                                                    (PVOID) Parameter1,
             Result = MmeGetSoundDeviceCapabilities(WAVE_IN_DEVICE_TYPE,
                                                    DeviceId,
                                                    (PVOID) Parameter1,
@@ -89,6 +90,13 @@ widMessage(
             Result = MmeResetWavePlayback(PrivateHandle);
             break;
         }
             Result = MmeResetWavePlayback(PrivateHandle);
             break;
         }
+
+        case WIDM_ADDBUFFER :
+        {
+            Result = MmeWriteWaveHeader(PrivateHandle, Parameter1);
+            break;
+        }
+
     }
 
     SND_TRACE(L"widMessage returning MMRESULT %d\n", Result);
     }
 
     SND_TRACE(L"widMessage returning MMRESULT %d\n", Result);