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

winealsa: Reset accounts for dropped frames in capture mode.

parent d82cca65
......@@ -1776,9 +1776,13 @@ static HRESULT WINAPI AudioClient_Reset(IAudioClient *iface)
if(snd_pcm_prepare(This->pcm_handle) < 0)
WARN("snd_pcm_prepare failed\n");
This->last_pos_frames = 0;
if(This->dataflow == eRender){
This->written_frames = 0;
This->last_pos_frames = 0;
}else{
This->written_frames += This->held_frames;
}
This->held_frames = 0;
This->written_frames = 0;
This->lcl_offs_frames = 0;
LeaveCriticalSection(&This->lock);
......
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