From a0e5cbc47fa95b57398af7b0454e2809bba1874b Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 21 Jul 2011 16:53:25 -0700 Subject: Fix DSound UpdateSize calculation when NumUpdates is clamped --- Alc/dsound.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc') diff --git a/Alc/dsound.c b/Alc/dsound.c index 147f520c..8d2834c2 100644 --- a/Alc/dsound.c +++ b/Alc/dsound.c @@ -478,8 +478,8 @@ static ALCboolean DSoundResetPlayback(ALCdevice *device) { if(device->NumUpdates > MAX_UPDATES) { - device->UpdateSize = ((ALuint64)device->UpdateSize*MAX_UPDATES + - device->NumUpdates-1) / device->NumUpdates; + device->UpdateSize = (device->UpdateSize*device->NumUpdates + + MAX_UPDATES-1) / MAX_UPDATES; device->NumUpdates = MAX_UPDATES; } -- cgit v1.2.3