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/core | |
| 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/core')
| -rw-r--r-- | engines/titanic/core/game_object.cpp | 4 | ||||
| -rw-r--r-- | engines/titanic/core/game_object.h | 4 |
2 files changed, 5 insertions, 3 deletions
diff --git a/engines/titanic/core/game_object.cpp b/engines/titanic/core/game_object.cpp index b4079f1c19..3286a6c7ee 100644 --- a/engines/titanic/core/game_object.cpp +++ b/engines/titanic/core/game_object.cpp @@ -763,12 +763,14 @@ int CGameObject::playSound(const CString &name, CProximity &prox) { return -1; } -int CGameObject::queueSound(const CString &name, uint priorHandle, uint volume, int balance, bool repeated) { +int CGameObject::queueSound(const CString &name, uint priorHandle, uint volume, int balance, bool repeated, + Audio::Mixer::SoundType soundType) { CProximity prox; prox._balance = balance; prox._repeated = repeated; prox._channelVolume = volume; prox._priorSoundHandle = priorHandle; + prox._soundType = soundType; return playSound(name, prox); } diff --git a/engines/titanic/core/game_object.h b/engines/titanic/core/game_object.h index 34bdcc7057..d4befa8fc8 100644 --- a/engines/titanic/core/game_object.h +++ b/engines/titanic/core/game_object.h @@ -229,8 +229,8 @@ protected: * @param balance Sound balance (not actually used by original) * @param repeated If true, sound will repeat indefinitely */ - int queueSound(const CString &name, uint priorHandle, uint volume = 100, - int balance = 0, bool repeated = false); + int queueSound(const CString &name, uint priorHandle, uint volume = 100, int balance = 0, + bool repeated = false, Audio::Mixer::SoundType soundType = Audio::Mixer::kPlainSoundType); /** * Stop a sound |
