winmm: Never write silence, mmdevapi must handle underruns.
This commit is contained in:
parent
0fa2cf4100
commit
1cde966c35
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue