=?UTF-8?Q?J=C3=B6rg=20H=C3=B6hle=20?=: dsound: Fix the computation of the mixer position in bytes.
Alexandre Julliard
julliard at winehq.org
Tue Jan 3 12:52:55 CST 2012
Module: wine
Branch: master
Commit: 35cdb8bb22a15e32f4e97151a67a1a0d43949cd1
URL: http://source.winehq.org/git/wine.git/?a=commit;h=35cdb8bb22a15e32f4e97151a67a1a0d43949cd1
Author: Jörg Höhle <hoehle at users.sourceforge.net>
Date: Sun Jan 1 20:39:34 2012 +0100
dsound: Fix the computation of the mixer position in bytes.
---
dlls/dsound/mixer.c | 3 +--
1 files changed, 1 insertions(+), 2 deletions(-)
diff --git a/dlls/dsound/mixer.c b/dlls/dsound/mixer.c
index d3b5fd8..23af6ce 100644
--- a/dlls/dsound/mixer.c
+++ b/dlls/dsound/mixer.c
@@ -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){
More information about the wine-cvs
mailing list