Commit 35cdb8bb authored by Jörg Höhle's avatar Jörg Höhle Committed by Alexandre Julliard

dsound: Fix the computation of the mixer position in bytes.

parent 8f0ac41d
......@@ -820,8 +820,7 @@ static void DSOUND_PerformMix(DirectSoundDevice *device)
return;
}
pos_bytes = (clock_pos * device->pwfx->nBlockAlign * clock_freq) /
device->pwfx->nSamplesPerSec;
pos_bytes = (clock_pos * device->pwfx->nSamplesPerSec * device->pwfx->nBlockAlign) / clock_freq;
delta_frags = (pos_bytes - device->last_pos_bytes) / device->fraglen;
if(delta_frags > 0){
......
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