winmm: Never write silence, mmdevapi must handle underruns.

This commit is contained in:
Jörg Höhle 2011-09-19 14:30:58 +02:00 committed by Alexandre Julliard
parent 0fa2cf4100
commit 1cde966c35
1 changed files with 0 additions and 17 deletions

View File

@ -1336,23 +1336,6 @@ static void WOD_PushData(WINMM_Device *device)
queue = queue->lpNext;
}
if(avail_frames != 0 && queue_frames == 0){
hr = IAudioRenderClient_GetBuffer(device->render, avail_frames, &data);
if(FAILED(hr)){
ERR("GetBuffer failed: %08x\n", hr);
goto exit;
}
hr = IAudioRenderClient_ReleaseBuffer(device->render, avail_frames,
AUDCLNT_BUFFERFLAGS_SILENT);
if(FAILED(hr)){
ERR("ReleaseBuffer failed: %08x\n", hr);
goto exit;
}
goto exit;
}
if(queue_frames < avail_frames)
avail_frames = queue_frames;
if(avail_frames == 0)