diff options
author | Sven Hesse | 2007-04-16 05:03:52 +0000 |
---|---|---|
committer | Sven Hesse | 2007-04-16 05:03:52 +0000 |
commit | 2653b70b0cb3ca0ea4edabcbcade70aceaa926c2 (patch) | |
tree | 8eab9b466b42d12a07b0a6fba0e4eb5ef0827a19 /engines/gob | |
parent | 46462e8f5e833156d896a3c48e34dca94892b0f3 (diff) | |
download | scummvm-rg350-2653b70b0cb3ca0ea4edabcbcade70aceaa926c2.tar.gz scummvm-rg350-2653b70b0cb3ca0ea4edabcbcade70aceaa926c2.tar.bz2 scummvm-rg350-2653b70b0cb3ca0ea4edabcbcade70aceaa926c2.zip |
Fixed regression that was added when making it compile with MSVC8
svn-id: r26521
Diffstat (limited to 'engines/gob')
-rw-r--r-- | engines/gob/sound.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/engines/gob/sound.cpp b/engines/gob/sound.cpp index 4e0516722b..baee878f4d 100644 --- a/engines/gob/sound.cpp +++ b/engines/gob/sound.cpp @@ -404,8 +404,8 @@ int Snd::readBuffer(int16 *buffer, const int numSamples) { // Linear interpolation. See sound/rate.cpp - val = _last + ((((_cur - _last) * _offsetFrac + - (1UL << (FRAC_BITS - 1))) >> FRAC_BITS) << 8); + val = (_last + (((_cur - _last) * _offsetFrac + + (1UL << (FRAC_BITS - 1))) >> FRAC_BITS)) << 8; *buffer++ = (((int32) val) * _fadeVol) >> 16; oldOffset = _offset; |