aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorSven Hesse2008-02-16 18:50:23 +0000
committerSven Hesse2008-02-16 18:50:23 +0000
commitdc7fd7177de23c8507509aa66cf166618a36975c (patch)
treefde3fb1826d4dc99477655fa418f0e50cc387ec0 /engines
parent11f24a44d84863c5ca9c4baac53ecc7b7674dfc7 (diff)
downloadscummvm-rg350-dc7fd7177de23c8507509aa66cf166618a36975c.tar.gz
scummvm-rg350-dc7fd7177de23c8507509aa66cf166618a36975c.tar.bz2
scummvm-rg350-dc7fd7177de23c8507509aa66cf166618a36975c.zip
Fixing fading on (only my?) amd64 systems
svn-id: r30882
Diffstat (limited to 'engines')
-rw-r--r--engines/gob/sound.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/engines/gob/sound.cpp b/engines/gob/sound.cpp
index f85d07138f..6b227cfb0e 100644
--- a/engines/gob/sound.cpp
+++ b/engines/gob/sound.cpp
@@ -333,7 +333,7 @@ int Snd::readBuffer(int16 *buffer, const int numSamples) {
// Linear interpolation. See sound/rate.cpp
- int32 val = (_last + (((_cur - _last) * _offsetFrac +
+ int16 val = (_last + (((_cur - _last) * _offsetFrac +
FRAC_HALF) >> FRAC_BITS)) << 8;
*buffer++ = (val * _fadeVol) >> 16;