From e57e16e2952f1576cb33ed5069ada14e26986b72 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 23 Jul 2014 02:39:51 +0200 Subject: SCUMM: Use correct sound type for digital sfx. This makes sure that digital sfx in pre digital iMuse games are using the SFX sound type rather than the speech sound type. This allows proper volume control. --- engines/scumm/sound.cpp | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'engines/scumm') diff --git a/engines/scumm/sound.cpp b/engines/scumm/sound.cpp index 7f045517bc..7c48a96351 100644 --- a/engines/scumm/sound.cpp +++ b/engines/scumm/sound.cpp @@ -658,7 +658,11 @@ void Sound::startTalkSound(uint32 offset, uint32 b, int mode, Audio::SoundHandle _vm->_imuseDigital->startVoice(kTalkSoundID, input); #endif } else { - _mixer->playStream(Audio::Mixer::kSpeechSoundType, handle, input, id); + if (mode == 1) { + _mixer->playStream(Audio::Mixer::kSFXSoundType, handle, input, id); + } else { + _mixer->playStream(Audio::Mixer::kSpeechSoundType, handle, input, id); + } } } } -- cgit v1.2.3