Fixed intermittent crash if conversing with music disabled

git-svn-id: svn://svn.code.sf.net/p/sc2/code/trunk@2959 8092fc87-c524-0410-9efc-e669fe64eaf9
This commit is contained in:
mcmartin
2008-04-06 07:50:42 +00:00
parent 32940bb214
commit 7f65c19044
2 changed files with 2 additions and 1 deletions
+1
View File
@@ -1,4 +1,5 @@
Changes towards version 0.7: Changes towards version 0.7:
- Fixed a crash when conversing with music disabled - Michael
- Moved all resources into starcon.ls2 - Michael - Moved all resources into starcon.ls2 - Michael
- Fixed compile errors when compiling without joystick support - Michael - Fixed compile errors when compiling without joystick support - Michael
- Added endian-aware integer read functions to uio - SvdB - Added endian-aware integer read functions to uio - SvdB
+1 -1
View File
@@ -850,7 +850,7 @@ GetSoundData (void *data)
// Using step of 1 sample at 11025Hz, because the human speech // Using step of 1 sample at 11025Hz, because the human speech
// is mostly in the low frequencies // is mostly in the low frequencies
step = soundSource[MUSIC_SOURCE].sample->decoder->frequency * 2 / 11025; step = soundSource[SPEECH_SOURCE].sample->decoder->frequency * 2 / 11025;
step = (step + 1) & ~1; step = (step + 1) & ~1;
if (delta < 0) if (delta < 0)