aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2011-07-21 16:53:25 -0700
committerChris Robinson <[email protected]>2011-07-21 16:53:25 -0700
commita0e5cbc47fa95b57398af7b0454e2809bba1874b (patch)
treeb442a8464431453b45a042e0f85b0cf56a5fe812 /Alc
parentd5ddc6acee1e3092ecda49b09be997916db5a988 (diff)
Fix DSound UpdateSize calculation when NumUpdates is clamped
Diffstat (limited to 'Alc')
-rw-r--r--Alc/dsound.c4
1 files changed, 2 insertions, 2 deletions
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;
}