aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/sound
diff options
context:
space:
mode:
authorPaul Gilbert2017-09-06 19:26:58 -0400
committerPaul Gilbert2017-09-06 19:26:58 -0400
commit0a3b6d34d5c8828537585ad8603a5191437824b1 (patch)
tree44f4fca233e32209c28e5fc7ab9d5c548ada49e7 /engines/titanic/sound
parentf58156aba003a6be069b432959e9fe7f2311539d (diff)
downloadscummvm-rg350-0a3b6d34d5c8828537585ad8603a5191437824b1.tar.gz
scummvm-rg350-0a3b6d34d5c8828537585ad8603a5191437824b1.tar.bz2
scummvm-rg350-0a3b6d34d5c8828537585ad8603a5191437824b1.zip
TITANIC: Make Parrot speech respect the Parrot volume level
Diffstat (limited to 'engines/titanic/sound')
-rw-r--r--engines/titanic/sound/sound.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/engines/titanic/sound/sound.cpp b/engines/titanic/sound/sound.cpp
index fb8cc299df..befe1a8e09 100644
--- a/engines/titanic/sound/sound.cpp
+++ b/engines/titanic/sound/sound.cpp
@@ -210,8 +210,10 @@ int CSound::playSpeech(CDialogueFile *dialogueFile, int speechId, CProximity &pr
return -1;
prox._soundDuration = waveFile->getDurationTicks();
- activateSound(waveFile, prox._disposeAfterUse);
+ if (prox._soundType != Audio::Mixer::kPlainSoundType)
+ waveFile->_soundType = prox._soundType;
+ activateSound(waveFile, prox._disposeAfterUse);
return _soundManager.playSound(*waveFile, prox);
}