Commit dcaeb6b4 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

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

parent 0627ddcf
......@@ -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");
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment