[PATCH] dsound: Allow multiple buffers to capture from the same device
Andrew Eikum
aeikum at codeweavers.com
Fri Jul 26 14:24:23 CDT 2013
Windows allows this, and some apps depend on it. MMDevAPI will report
if the hardware won't open two streams on the same device.
---
dlls/dsound/capture.c | 8 --------
1 file changed, 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");
--
1.8.3.4
More information about the wine-patches
mailing list