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

This commit is contained in:
Andrew Eikum 2013-07-26 14:24:23 -05:00 committed by Alexandre Julliard
parent 0627ddcf15
commit dcaeb6b4fd
1 changed files with 0 additions and 8 deletions

View File

@ -986,14 +986,6 @@ static HRESULT DirectSoundCaptureDevice_Initialize(
EnterCriticalSection(&DSOUND_capturers_lock); 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); hr = DirectSoundCaptureDevice_Create(&device);
if (hr != DS_OK) { if (hr != DS_OK) {
WARN("DirectSoundCaptureDevice_Create failed\n"); WARN("DirectSoundCaptureDevice_Create failed\n");