[PATCH (try2)] xaudio2_7: Update current buffer position after flushing buffers
Andrew Eikum
aeikum at codeweavers.com
Thu Nov 12 14:27:47 CST 2015
Signed-off-by: Andrew Eikum <aeikum at codeweavers.com>
---
try2: Forgot to wrap the index around.
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..15b3ab9 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) % XAUDIO2_MAX_QUEUED_BUFFERS;
LeaveCriticalSection(&This->lock);
--
2.6.2
More information about the wine-patches
mailing list