[PATCH 2/2] winmm: Don't count unused frames

Andrew Eikum aeikum at codeweavers.com
Fri Jul 26 14:17:06 CDT 2013


---
 dlls/winmm/waveform.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/dlls/winmm/waveform.c b/dlls/winmm/waveform.c
index 76d624a..752e64d 100644
--- a/dlls/winmm/waveform.c
+++ b/dlls/winmm/waveform.c
@@ -1901,7 +1901,7 @@ static void WID_PullData(WINMM_Device *device)
 
         if(packet > 0)
             WARN("losing %u frames\n", packet);
-        device->played_frames += packet_len;
+        device->played_frames += packet_len - packet;
     }
 
 exit:
-- 
1.8.3.4




More information about the wine-patches mailing list