winealsa: Drop unplayed frames instead of waiting for them.

This commit is contained in:
Maarten Lankhorst 2007-04-20 21:47:17 +02:00 committed by Alexandre Julliard
parent 7d3162e6be
commit 6093bb2ece

View file

@ -218,12 +218,12 @@ static DWORD CALLBACK DBSB_MMAPLoop(LPVOID data)
case WINE_WM_STOPPING:
state = WINE_WS_STOPPED;
snd_pcm_drain(wwo->pcm);
snd_pcm_drop(wwo->pcm);
break;
case WINE_WM_CLOSING:
if (wwo->pcm != NULL)
snd_pcm_drain(wwo->pcm);
snd_pcm_drop(wwo->pcm);
pdbi->mmap_thread = NULL;
SetEvent(hEvent);
goto out;