Reset played variables on open.
This commit is contained in:
parent
136a93e6be
commit
1e2dcc457e
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in New Issue