diff options
author | Paul Gilbert | 2017-06-15 19:56:12 -0400 |
---|---|---|
committer | Paul Gilbert | 2017-06-15 19:56:12 -0400 |
commit | c0209598927cd338d93cd501ef6a4354d06bacdc (patch) | |
tree | bc5ca006102bc40d6a843d7d23565e5954fd5001 /engines/titanic/game/announce.cpp | |
parent | 9bb9c0d58eea71292d05b4e5515c48ba53d1f194 (diff) | |
download | scummvm-rg350-c0209598927cd338d93cd501ef6a4354d06bacdc.tar.gz scummvm-rg350-c0209598927cd338d93cd501ef6a4354d06bacdc.tar.bz2 scummvm-rg350-c0209598927cd338d93cd501ef6a4354d06bacdc.zip |
TITANIC: Have ship announcements use the speech sound type
Diffstat (limited to 'engines/titanic/game/announce.cpp')
-rw-r--r-- | engines/titanic/game/announce.cpp | 16 |
1 files changed, 11 insertions, 5 deletions
diff --git a/engines/titanic/game/announce.cpp b/engines/titanic/game/announce.cpp index 16298f7b99..04b46d5910 100644 --- a/engines/titanic/game/announce.cpp +++ b/engines/titanic/game/announce.cpp @@ -75,22 +75,28 @@ bool CAnnounce::TimerMsg(CTimerMsg *msg) { "", "", "", "", "", "", "" }; + CProximity prox; + prox._soundType = Audio::Mixer::kSpeechSoundType; + int randVal = _nameIndex ? getRandomNumber(2) : 0; switch (randVal) { case 0: case 1: - _soundHandle = playSound("z#189.wav"); + _soundHandle = playSound("z#189.wav", prox); if (_nameIndex < 20) { - queueSound(waveNames1[_nameIndex], _soundHandle); + queueSound(waveNames1[_nameIndex], _soundHandle, 100, 0, false, + Audio::Mixer::kSpeechSoundType); ++_nameIndex; } else { - queueSound(waveNames1[1 + getRandomNumber(17)], _soundHandle); + queueSound(waveNames1[1 + getRandomNumber(17)], _soundHandle, + 100, 0, false, Audio::Mixer::kSpeechSoundType); } break; case 2: - _soundHandle = playSound("z#189.wav"); - queueSound(waveNames2[1 + getRandomNumber(35)], _soundHandle); + _soundHandle = playSound("z#189.wav", prox); + queueSound(waveNames2[1 + getRandomNumber(35)], _soundHandle, + 100, 0, false, Audio::Mixer::kSpeechSoundType); break; default: |