Ticket #7961: scummdiv

File scummdiv, 596 bytes (added by SF/mkarcher, 17 years ago)

patch fixing sound crash

Line 
1? scummvm
2? tentacle.c00
3? tentacle.c09
4? tentacle.s00
5? tentacle.s01
6? tentacle.s09
7Index: sound/mixer.cpp
8===================================================================
9RCS file: /cvsroot/scummvm/scummvm/sound/mixer.cpp,v
10retrieving revision 1.17
11diff -u -r1.17 mixer.cpp
12--- sound/mixer.cpp     28 Apr 2002 14:01:40 -0000      1.17
13+++ sound/mixer.cpp     1 May 2002 09:28:26 -0000
14@@ -153,7 +153,7 @@
15 
16        /* adjust the magnitute to prevent division error */
17        while (size & 0xFFFF0000)
18-               size >>= 1, rate >>= 1;
19+               size >>= 1, rate = (rate>>1) + 1;
20 
21        _size = size * mixer->_output_rate / rate;
22 }