wineoss: Reset accounts for dropped frames in capture mode.

This commit is contained in:
Jörg Höhle 2012-01-12 23:08:47 +01:00 committed by Alexandre Julliard
parent 999423d34e
commit 04cf4dc06f
1 changed files with 6 additions and 1 deletions

View File

@ -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;