Commit 04cf4dc0 authored by Jörg Höhle's avatar Jörg Höhle Committed by Alexandre Julliard

wineoss: Reset accounts for dropped frames in capture mode.

parent 999423d3
......@@ -1501,7 +1501,12 @@ static HRESULT WINAPI AudioClient_Reset(IAudioClient *iface)
return AUDCLNT_E_BUFFER_OPERATION_PENDING;
}
This->written_frames = 0;
if(This->dataflow == eRender){
This->written_frames = 0;
}else{
This->written_frames += This->held_frames;
}
This->lcl_offs_frames = 0;
This->inbuf_frames = 0;
This->held_frames = 0;
......
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