From 1e2dcc457eac819c48ff29eeaa9d61df5760e1ef Mon Sep 17 00:00:00 2001 From: Robert Reif Date: Mon, 14 Jun 2004 16:59:34 +0000 Subject: [PATCH] Reset played variables on open. --- dlls/winmm/winealsa/audio.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dlls/winmm/winealsa/audio.c b/dlls/winmm/winealsa/audio.c index f1702024c8d..0c58af3ade9 100644 --- a/dlls/winmm/winealsa/audio.c +++ b/dlls/winmm/winealsa/audio.c @@ -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);