Always use music sound type, for music in 3DO versions of HE games

svn-id: r21019
This commit is contained in:
Travis Howell 2006-03-03 00:45:27 +00:00
parent 7423394bdd
commit ab0cf121c9

View File

@ -336,10 +336,10 @@ void Sound::playHESound(int soundID, int heOffset, int heChannel, int heFlags) {
byte flags = Audio::Mixer::FLAG_UNSIGNED;
Audio::Mixer::SoundType type = Audio::Mixer::kSFXSoundType;
if (soundID == 1)
type = Audio::Mixer::kSpeechSoundType;
else if (soundID > _vm->_numSounds)
if (soundID > _vm->_numSounds)
type = Audio::Mixer::kMusicSoundType;
else if (soundID == 1)
type = Audio::Mixer::kSpeechSoundType;
if (heChannel == -1)
@ -492,7 +492,7 @@ void Sound::playHESound(int soundID, int heOffset, int heChannel, int heFlags) {
_vm->_mixer->stopID(_currentMusic);
_currentMusic = soundID;
_vm->_mixer->playRaw(NULL, ptr + 8, size, rate, flags, soundID, 255, 0, 0,0, type);
_vm->_mixer->playRaw(NULL, ptr + 8, size, rate, flags, soundID, 255, 0, 0,0, Audio::Mixer::kMusicSoundType);
}
else if (READ_BE_UINT32(ptr) == MKID_BE('MIDI')) {
if (_vm->_imuse) {