Andrew Eikum : winmm: Don't count unused frames.

Alexandre Julliard julliard at winehq.org
Sat Jul 27 13:23:36 CDT 2013


Module: wine
Branch: master
Commit: 0627ddcf1528c98ad6b2a5efb56184b80a3b6198
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=0627ddcf1528c98ad6b2a5efb56184b80a3b6198

Author: Andrew Eikum <aeikum at codeweavers.com>
Date:   Fri Jul 26 14:17:06 2013 -0500

winmm: Don't count unused frames.

---

 dlls/winmm/waveform.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

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:




More information about the wine-cvs mailing list