Module: wine Branch: master Commit: 38752f5bf7ab7d39846bcb5997a934aad01b3f62 URL: http://source.winehq.org/git/wine.git/?a=commit;h=38752f5bf7ab7d39846bcb5997...
Author: Jörg Höhle hoehle@users.sourceforge.net Date: Fri Sep 23 10:24:13 2011 +0200
winmm: Fix sum of available samples.
---
dlls/winmm/waveform.c | 3 +-- 1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/winmm/waveform.c b/dlls/winmm/waveform.c index 1152f61..8567352 100644 --- a/dlls/winmm/waveform.c +++ b/dlls/winmm/waveform.c @@ -1329,8 +1329,7 @@ static void WOD_PushData(WINMM_Device *device) nloops = 0; while(queue && queue_frames < avail_frames){ queue_bytes = WINMM_HeaderLenBytes(device, queue); - queue_frames = (queue_bytes - ofs) / device->bytes_per_frame; - + queue_frames += (queue_bytes - ofs) / device->bytes_per_frame; ofs = 0;
if(queue->dwFlags & WHDR_ENDLOOP && nloops < device->loop_counter){