xaudio2_7: Update current buffer position after flushing buffers.

Signed-off-by: Andrew Eikum <aeikum@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
This commit is contained in:
Andrew Eikum 2015-11-12 14:27:47 -06:00 committed by Alexandre Julliard
parent 493d414cad
commit d672ebfeb8
1 changed files with 1 additions and 0 deletions

View File

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