diff options
author | Lionel Ulmer | 2002-06-06 21:42:11 +0000 |
---|---|---|
committer | Lionel Ulmer | 2002-06-06 21:42:11 +0000 |
commit | 6abeab5b5a35a3f2345c50b81e474b1b7d395abe (patch) | |
tree | 716062de2cce8b4236d79ec9f59ad3103a313ef8 /sound | |
parent | 90cb2ea7c16a9ae246714703a4d2edc23962d955 (diff) | |
download | scummvm-rg350-6abeab5b5a35a3f2345c50b81e474b1b7d395abe.tar.gz scummvm-rg350-6abeab5b5a35a3f2345c50b81e474b1b7d395abe.tar.bz2 scummvm-rg350-6abeab5b5a35a3f2345c50b81e474b1b7d395abe.zip |
This should fix the regression introduced by my streaming changes (bug
#564756). Thanks Oliver Kiehl for the find :-)
svn-id: r4411
Diffstat (limited to 'sound')
-rw-r--r-- | sound/mixer.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/mixer.cpp b/sound/mixer.cpp index 5f1d3fba11..21120dc47e 100644 --- a/sound/mixer.cpp +++ b/sound/mixer.cpp @@ -200,12 +200,12 @@ SoundMixer::Channel_RAW::Channel_RAW(SoundMixer *mixer, void *sound, uint32 size _fp_pos = 0; _fp_speed = (1 << 16) * rate / mixer->_output_rate; _to_be_destroyed = false; + _realsize = size; /* adjust the magnitute to prevent division error */ while (size & 0xFFFF0000) size >>= 1, rate = (rate>>1) + 1; - _realsize = size; _rate = rate; _size = size * mixer->_output_rate / rate; if (_flags & FLAG_16BITS) _size = _size >> 1; |