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

mmdevapi: Fix stuttering upon start and underrun.

parent dd0f5377
......@@ -2107,7 +2107,8 @@ static HRESULT WINAPI AudioRenderClient_ReleaseBuffer(
alsa_wrap_buffer(This,
This->tmp_buffer + written * This->fmt->nBlockAlign,
written_frames - written);
else
This->lcl_offs_frames += written;
This->held_frames = written_frames - written;
}
}
......
......@@ -1740,7 +1740,8 @@ static HRESULT WINAPI AudioRenderClient_ReleaseBuffer(
if(This->buf_state == LOCKED_WRAPPED)
oss_wrap_buffer(This, This->tmp_buffer + w_bytes,
written_frames - w_frames);
else
This->lcl_offs_frames += w_frames;
This->held_frames = written_frames - w_frames;
}
}
......
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