diff --git a/dlls/winmm/waveform.c b/dlls/winmm/waveform.c index e9ee0078d4c..cb0762c367d 100644 --- a/dlls/winmm/waveform.c +++ b/dlls/winmm/waveform.c @@ -1247,7 +1247,7 @@ static WAVEHDR *WOD_MarkDoneHeaders(WINMM_Device *device) return NULL; } - clock_frames = (clock_pos / (double)clock_freq) * device->samples_per_sec; + clock_frames = (clock_pos * device->samples_per_sec) / clock_freq; nloops = device->loop_counter; while(queue &&