winmm: Fix clock position calculation.

This commit is contained in:
Andrew Eikum 2011-10-28 09:51:51 -05:00 committed by Alexandre Julliard
parent 00629cb0b3
commit 0a20ec0935
1 changed files with 1 additions and 1 deletions

View File

@ -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 &&