Andrew Eikum : dsound: Allow multiple buffers to capture from the same device.

Alexandre Julliard julliard at winehq.org
Sat Jul 27 13:23:36 CDT 2013


Module: wine
Branch: master
Commit: dcaeb6b4fdf890d68d2c3c4d4d3372cf6d3d7e7a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=dcaeb6b4fdf890d68d2c3c4d4d3372cf6d3d7e7a

Author: Andrew Eikum <aeikum at codeweavers.com>
Date:   Fri Jul 26 14:24:23 2013 -0500

dsound: Allow multiple buffers to capture from the same device.

---

 dlls/dsound/capture.c |    8 --------
 1 files changed, 0 insertions(+), 8 deletions(-)

diff --git a/dlls/dsound/capture.c b/dlls/dsound/capture.c
index 01cf775..63bda55 100644
--- a/dlls/dsound/capture.c
+++ b/dlls/dsound/capture.c
@@ -986,14 +986,6 @@ static HRESULT DirectSoundCaptureDevice_Initialize(
 
     EnterCriticalSection(&DSOUND_capturers_lock);
 
-    LIST_FOR_EACH_ENTRY(device, &DSOUND_capturers, DirectSoundCaptureDevice, entry){
-        if(IsEqualGUID(&device->guid, &devGUID)){
-            IMMDevice_Release(mmdevice);
-            LeaveCriticalSection(&DSOUND_capturers_lock);
-            return DSERR_ALLOCATED;
-        }
-    }
-
     hr = DirectSoundCaptureDevice_Create(&device);
     if (hr != DS_OK) {
         WARN("DirectSoundCaptureDevice_Create failed\n");




More information about the wine-cvs mailing list