From b955d7e5115d7a0eff039cf7d727d1555ea3e1fc Mon Sep 17 00:00:00 2001 From: James Brown Date: Wed, 1 May 2002 09:56:14 +0000 Subject: Fix sound crash in some games. Thanks Michael Karcher. svn-id: r4155 --- sound/mixer.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sound/mixer.cpp') 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; } -- cgit v1.2.3