winealsa.drv: Fix underrun recovery

Maarten Lankhorst m.b.lankhorst at gmail.com
Sun Nov 8 04:10:55 CST 2009


---
-------------- next part --------------
From 7fa95810afc3a686b482eb645808c06383cb08dc Mon Sep 17 00:00:00 2001
From: mlankhorst <mlankhorst at eee.(none)>
Date: Sun, 8 Nov 2009 11:12:16 +0100
Subject: [PATCH 2/2] winealsa.drv: Fix underrun recovery

---
 dlls/winealsa.drv/waveout.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/dlls/winealsa.drv/waveout.c b/dlls/winealsa.drv/waveout.c
index 25a1618..3476f59 100644
--- a/dlls/winealsa.drv/waveout.c
+++ b/dlls/winealsa.drv/waveout.c
@@ -110,6 +110,7 @@ static BOOL wodUpdatePlayedTotal(WINE_WAVEDEV* wwo, snd_pcm_status_t* ps)
     if (state != SND_PCM_STATE_RUNNING && state != SND_PCM_STATE_PREPARED)
     {
         WARN("Unexpected state (%d) while updating Total Played, resetting\n", state);
+        snd_pcm_recover(wwo->pcm, -EPIPE, 0);
         delay=0;
     }
 
-- 
1.6.5.2


More information about the wine-patches mailing list