[PATCH] xaudio2_7: Update current buffer position after flushing buffers

Andrew Eikum aeikum at codeweavers.com
Thu Nov 12 14:20:34 CST 2015


Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
---
 dlls/xaudio2_7/xaudio_dll.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/dlls/xaudio2_7/xaudio_dll.c b/dlls/xaudio2_7/xaudio_dll.c
index 9cf6ba6..75fb697 100644
--- a/dlls/xaudio2_7/xaudio_dll.c
+++ b/dlls/xaudio2_7/xaudio_dll.c
@@ -633,6 +633,7 @@ static HRESULT WINAPI XA2SRC_FlushSourceBuffers(IXAudio2SourceVoice *iface)
     }
 
     This->nbufs -= to_flush;
+    This->cur_buf = This->first_buf + This->nbufs;
 
     LeaveCriticalSection(&This->lock);
 
-- 
2.6.2




More information about the wine-patches mailing list