aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm
diff options
context:
space:
mode:
authorJohannes Schickel2014-07-23 02:39:51 +0200
committerJohannes Schickel2014-07-23 02:39:51 +0200
commite57e16e2952f1576cb33ed5069ada14e26986b72 (patch)
treeb55dec26c5231a7795f9a5e9b9745d311a2ae9db /engines/scumm
parentbe9c3bf72bfc6d0abf650664df4be3595ad96933 (diff)
downloadscummvm-rg350-e57e16e2952f1576cb33ed5069ada14e26986b72.tar.gz
scummvm-rg350-e57e16e2952f1576cb33ed5069ada14e26986b72.tar.bz2
scummvm-rg350-e57e16e2952f1576cb33ed5069ada14e26986b72.zip
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.
Diffstat (limited to 'engines/scumm')
-rw-r--r--engines/scumm/sound.cpp6
1 files changed, 5 insertions, 1 deletions
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);
+ }
}
}
}