aboutsummaryrefslogtreecommitdiff
path: root/sound
diff options
context:
space:
mode:
authorLionel Ulmer2002-06-06 21:42:11 +0000
committerLionel Ulmer2002-06-06 21:42:11 +0000
commit6abeab5b5a35a3f2345c50b81e474b1b7d395abe (patch)
tree716062de2cce8b4236d79ec9f59ad3103a313ef8 /sound
parent90cb2ea7c16a9ae246714703a4d2edc23962d955 (diff)
downloadscummvm-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.cpp2
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;