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 -1
View File
@@ -850,7 +850,7 @@ GetSoundData (void *data)
// Using step of 1 sample at 11025Hz, because the human speech
// 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;
if (delta < 0)