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

This commit is contained in:
Jörg Höhle 2012-01-01 20:39:34 +01:00 committed by Alexandre Julliard
parent 8f0ac41d3f
commit 35cdb8bb22
1 changed files with 1 additions and 2 deletions

View File

@ -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){