Reset played variables on open.

This commit is contained in:
Robert Reif 2004-06-14 16:59:34 +00:00 committed by Alexandre Julliard
parent 136a93e6be
commit 1e2dcc457e
1 changed files with 2 additions and 0 deletions

View File

@ -1616,6 +1616,8 @@ static DWORD wodOpen(WORD wDevID, LPWAVEOPENDESC lpDesc, DWORD dwFlags)
wwo->dwBufferSize = buffer_size;
wwo->lpQueuePtr = wwo->lpPlayPtr = wwo->lpLoopPtr = NULL;
wwo->p_handle = pcm;
wwo->dwPlayedTotal = wwo->dwWrittenTotal = 0;
wwo->dwPartialOffset = 0;
ALSA_InitRingMessage(&wwo->msgRing);