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

winealsa.drv: Fix AudioRenderClient write pointer calculation.

parent 8d8843e5
...@@ -2028,8 +2028,8 @@ static HRESULT WINAPI AudioRenderClient_ReleaseBuffer( ...@@ -2028,8 +2028,8 @@ static HRESULT WINAPI AudioRenderClient_ReleaseBuffer(
} }
if(This->buf_state == LOCKED_NORMAL) if(This->buf_state == LOCKED_NORMAL)
buffer = This->local_buffer + buffer = This->local_buffer + This->fmt->nBlockAlign *
(This->lcl_offs_frames + This->held_frames) * This->fmt->nBlockAlign; ((This->lcl_offs_frames + This->held_frames) % This->bufsize_frames);
else else
buffer = This->tmp_buffer; buffer = This->tmp_buffer;
......
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