Commit 0a20ec09 authored by Andrew Eikum's avatar Andrew Eikum Committed by Alexandre Julliard

winmm: Fix clock position calculation.

parent 00629cb0
......@@ -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 &&
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment