diff options
-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 76394c6fd6..c8502685da 100644 --- a/sound/mixer.cpp +++ b/sound/mixer.cpp @@ -153,7 +153,7 @@ SoundMixer::Channel_RAW::Channel_RAW(SoundMixer *mixer, void *sound, uint32 size /* adjust the magnitute to prevent division error */ while (size & 0xFFFF0000) - size >>= 1, rate >>= 1; + size >>= 1, rate = (rate>>1) + 1; _size = size * mixer->_output_rate / rate; } |