diff options
author | Sven Hesse | 2008-02-16 18:50:23 +0000 |
---|---|---|
committer | Sven Hesse | 2008-02-16 18:50:23 +0000 |
commit | dc7fd7177de23c8507509aa66cf166618a36975c (patch) | |
tree | fde3fb1826d4dc99477655fa418f0e50cc387ec0 /engines | |
parent | 11f24a44d84863c5ca9c4baac53ecc7b7674dfc7 (diff) | |
download | scummvm-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.cpp | 2 |
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; |