aboutsummaryrefslogtreecommitdiff
path: root/engines/titanic/game
diff options
context:
space:
mode:
authorPaul Gilbert2017-09-20 22:33:18 -0400
committerPaul Gilbert2017-09-20 22:33:18 -0400
commit9127f5245fe10bc9de8efea5a9050d980f3ef241 (patch)
tree306bdcaa2292fe71fa8eab212af4d4952723db9d /engines/titanic/game
parent32735d59e82d178088b006ba583000fc37995b37 (diff)
downloadscummvm-rg350-9127f5245fe10bc9de8efea5a9050d980f3ef241.tar.gz
scummvm-rg350-9127f5245fe10bc9de8efea5a9050d980f3ef241.tar.bz2
scummvm-rg350-9127f5245fe10bc9de8efea5a9050d980f3ef241.zip
TITANIC: DE: Adding sound translations
Diffstat (limited to 'engines/titanic/game')
-rw-r--r--engines/titanic/game/code_wheel.cpp4
-rw-r--r--engines/titanic/game/fan_control.cpp3
-rw-r--r--engines/titanic/game/fan_noises.cpp15
-rw-r--r--engines/titanic/game/glass_smasher.cpp3
-rw-r--r--engines/titanic/game/gondolier/gondolier_mixer.cpp3
-rw-r--r--engines/titanic/game/hammer_dispensor_button.cpp5
-rw-r--r--engines/titanic/game/light.cpp9
-rw-r--r--engines/titanic/game/long_stick_dispenser.cpp5
-rw-r--r--engines/titanic/game/maitred/maitred_body.cpp3
-rw-r--r--engines/titanic/game/missiveomat.cpp5
-rw-r--r--engines/titanic/game/nav_helmet.cpp13
-rw-r--r--engines/titanic/game/parrot/parrot_nut_bowl_actor.cpp3
-rw-r--r--engines/titanic/game/parrot/parrot_nut_eater.cpp9
-rw-r--r--engines/titanic/game/record_phonograph_button.cpp5
-rw-r--r--engines/titanic/game/replacement_ear.cpp3
-rw-r--r--engines/titanic/game/sgt/drawer.cpp5
16 files changed, 55 insertions, 38 deletions
diff --git a/engines/titanic/game/code_wheel.cpp b/engines/titanic/game/code_wheel.cpp
index 1df99ae749..441c481dfe 100644
--- a/engines/titanic/game/code_wheel.cpp
+++ b/engines/titanic/game/code_wheel.cpp
@@ -22,6 +22,8 @@
#include "titanic/game/code_wheel.h"
#include "titanic/titanic.h"
+#include "titanic/translation.h"
+#include "titanic/translation.h"
namespace Titanic {
@@ -91,7 +93,7 @@ bool CodeWheel::MouseButtonDownMsg(CMouseButtonDownMsg *msg) {
_value = (_value <= 0) ? 14 : _value - 1;
}
- playSound("z#59.wav");
+ playSound(TRANSLATE("z#59.wav", "z#590.wav"));
return true;
}
diff --git a/engines/titanic/game/fan_control.cpp b/engines/titanic/game/fan_control.cpp
index fc99bd8b36..689f66e3d6 100644
--- a/engines/titanic/game/fan_control.cpp
+++ b/engines/titanic/game/fan_control.cpp
@@ -21,6 +21,7 @@
*/
#include "titanic/game/fan_control.h"
+#include "titanic/translation.h"
namespace Titanic {
@@ -74,7 +75,7 @@ bool CFanControl::ActMsg(CActMsg *msg) {
bool CFanControl::StatusChangeMsg(CStatusChangeMsg *msg) {
if (!_starlingsDying) {
- playSound("z#42.wav");
+ playSound(TRANSLATE("z#42.wav", "z#743.wav"));
if (_enabled) {
switch (msg->_newStatus) {
case 1:
diff --git a/engines/titanic/game/fan_noises.cpp b/engines/titanic/game/fan_noises.cpp
index 7ddf919eca..1a5a46ac02 100644
--- a/engines/titanic/game/fan_noises.cpp
+++ b/engines/titanic/game/fan_noises.cpp
@@ -22,6 +22,7 @@
#include "titanic/game/fan_noises.h"
#include "titanic/core/room_item.h"
+#include "titanic/translation.h"
namespace Titanic {
@@ -75,12 +76,12 @@ bool CFanNoises::EnterRoomMsg(CEnterRoomMsg *msg) {
switch (_state) {
case 1:
- _soundHandle = playSound("b#60.wav", 0, _soundBalance, true);
+ _soundHandle = playSound(TRANSLATE("b#60.wav", "b#40.wav"), 0, _soundBalance, true);
setSoundVolume(_soundHandle, _soundPercent, _soundSeconds);
_startFlag = true;
break;
case 2:
- _soundHandle = playSound("b#58.wav", 0, _soundBalance, true);
+ _soundHandle = playSound(TRANSLATE("b#58.wav", "b#38.wav"), 0, _soundBalance, true);
setSoundVolume(_soundHandle, _soundPercent, _soundSeconds);
_startFlag = true;
break;
@@ -122,7 +123,7 @@ bool CFanNoises::StatusChangeMsg(CStatusChangeMsg *msg) {
switch (oldState) {
case 1:
case 2:
- playSound("b#59.wav", _soundPercent, _soundBalance);
+ playSound(TRANSLATE("b#59.wav", "b#39.wav"), _soundPercent, _soundBalance);
break;
default:
break;
@@ -140,7 +141,7 @@ bool CFanNoises::StatusChangeMsg(CStatusChangeMsg *msg) {
switch (oldState) {
case 0:
case 2:
- _soundHandle = playSound("b#60.wav", _soundPercent, _soundBalance, true);
+ _soundHandle = playSound(TRANSLATE("b#60.wav", "b#40.wav"), _soundPercent, _soundBalance, true);
_startFlag = true;
break;
default:
@@ -157,7 +158,7 @@ bool CFanNoises::StatusChangeMsg(CStatusChangeMsg *msg) {
}
if (oldState == 1) {
- _soundHandle = playSound("b#58.wav", _soundPercent, _soundBalance, true);
+ _soundHandle = playSound(TRANSLATE("b#58.wav", "b#38.wav"), _soundPercent, _soundBalance, true);
_startFlag = true;
}
break;
@@ -186,13 +187,13 @@ bool CFanNoises::LoadSuccessMsg(CLoadSuccessMsg *msg) {
switch (_state) {
case 1:
- playSound("b#60.wav", 0, _soundBalance, true);
+ playSound(TRANSLATE("b#60.wav", "b#40.wav"), 0, _soundBalance, true);
setSoundVolume(_soundHandle, _soundPercent, _soundSeconds);
_startFlag = true;
break;
case 2:
- playSound("b#58.wav", 0, _soundBalance, true);
+ playSound(TRANSLATE("b#58.wav", "b#38.wav"), 0, _soundBalance, true);
setSoundVolume(_soundHandle, _soundPercent, _soundSeconds);
_startFlag = true;
break;
diff --git a/engines/titanic/game/glass_smasher.cpp b/engines/titanic/game/glass_smasher.cpp
index 7de034c2ee..240c9cd9f2 100644
--- a/engines/titanic/game/glass_smasher.cpp
+++ b/engines/titanic/game/glass_smasher.cpp
@@ -21,6 +21,7 @@
*/
#include "titanic/game/glass_smasher.h"
+#include "titanic/translation.h"
namespace Titanic {
@@ -41,7 +42,7 @@ void CGlassSmasher::load(SimpleFile *file) {
bool CGlassSmasher::StatusChangeMsg(CStatusChangeMsg *msg) {
setVisible(true);
- playSound("b#40.wav");
+ playSound(TRANSLATE("b#40.wav", "b#19.wav"));
playMovie(MOVIE_NOTIFY_OBJECT | MOVIE_WAIT_FOR_FINISH);
return true;
}
diff --git a/engines/titanic/game/gondolier/gondolier_mixer.cpp b/engines/titanic/game/gondolier/gondolier_mixer.cpp
index e71562f9d4..da0e7223b1 100644
--- a/engines/titanic/game/gondolier/gondolier_mixer.cpp
+++ b/engines/titanic/game/gondolier/gondolier_mixer.cpp
@@ -22,6 +22,7 @@
#include "titanic/game/gondolier/gondolier_mixer.h"
#include "titanic/core/room_item.h"
+#include "titanic/translation.h"
namespace Titanic {
@@ -173,7 +174,7 @@ bool CGondolierMixer::SignalObject(CSignalObject *msg) {
CVisibleMsg visibleMsg;
visibleMsg.execute("Mouth");
- playSound("z#47.wav");
+ playSound(TRANSLATE("z#47.wav", "z#578.wav"));
} else {
CSetVolumeMsg volumeMsg(_volume1, 2);
volumeMsg.execute(this);
diff --git a/engines/titanic/game/hammer_dispensor_button.cpp b/engines/titanic/game/hammer_dispensor_button.cpp
index 661a92eb17..275ef204b2 100644
--- a/engines/titanic/game/hammer_dispensor_button.cpp
+++ b/engines/titanic/game/hammer_dispensor_button.cpp
@@ -21,6 +21,7 @@
*/
#include "titanic/game/hammer_dispensor_button.h"
+#include "titanic/translation.h"
namespace Titanic {
@@ -68,7 +69,7 @@ bool CHammerDispensorButton::PuzzleSolvedMsg(CPuzzleSolvedMsg *msg) {
}
bool CHammerDispensorButton::MouseButtonUpMsg(CMouseButtonUpMsg *msg) {
- playSound("z#93.wav");
+ playSound(TRANSLATE("z#93.wav", "z#624.wav"));
petDisplayMessage(1, POKE_WITH_LONG_STICK);
return true;
}
@@ -97,7 +98,7 @@ bool CHammerDispensorButton::FrameMsg(CFrameMsg *msg) {
if (!_open) {
if (flag) {
- playSound("z#93.wav");
+ playSound(TRANSLATE("z#93.wav", "z#624.wav"));
if (++_hitCounter == 5) {
if (!_hammerTaken) {
CActMsg actMsg(_msgAction);
diff --git a/engines/titanic/game/light.cpp b/engines/titanic/game/light.cpp
index 30fc53463f..cd2d9f3f39 100644
--- a/engines/titanic/game/light.cpp
+++ b/engines/titanic/game/light.cpp
@@ -23,6 +23,7 @@
#include "titanic/game/light.h"
#include "titanic/game/television.h"
#include "titanic/pet_control/pet_control.h"
+#include "titanic/translation.h"
namespace Titanic {
@@ -109,10 +110,10 @@ bool CLight::StatusChangeMsg(CStatusChangeMsg *msg) {
if (_eyePresent && isYourStateroom) {
petDisplayMessage(1, LIGHT_IS_LOOSE);
- playSound("z#144.wav", 70);
+ playSound(TRANSLATE("z#144.wav", "z#700.wav"), 70);
} else {
petDisplayMessage(1, LUMI_GLOW_LIGHTS);
- playSound("z#62.wav", 70);
+ playSound(TRANSLATE("z#62.wav", "z#593.wav"), 70);
}
return true;
@@ -124,10 +125,10 @@ bool CLight::MouseButtonDownMsg(CMouseButtonDownMsg *msg) {
if (_eyePresent && isYourStateroom) {
petDisplayMessage(1, LIGHT_IS_LOOSE);
- playSound("z#144.wav", 70);
+ playSound(TRANSLATE("z#144.wav", "z#700.wav"), 70);
} else {
petDisplayMessage(1, LUMI_GLOW_LIGHTS);
- playSound("z#62.wav", 70);
+ playSound(TRANSLATE("z#62.wav", "z#593.wav"), 70);
}
return true;
diff --git a/engines/titanic/game/long_stick_dispenser.cpp b/engines/titanic/game/long_stick_dispenser.cpp
index c340cae75b..50d46e4ae0 100644
--- a/engines/titanic/game/long_stick_dispenser.cpp
+++ b/engines/titanic/game/long_stick_dispenser.cpp
@@ -23,6 +23,7 @@
#include "titanic/game/long_stick_dispenser.h"
#include "titanic/core/project_item.h"
#include "titanic/titanic.h"
+#include "titanic/translation.h"
namespace Titanic {
@@ -62,7 +63,7 @@ bool CLongStickDispenser::PuzzleSolvedMsg(CPuzzleSolvedMsg *msg) {
_fieldC0 = 1;
loadFrame(19);
} else if (_fieldC0 != 1) {
- playSound(g_vm->isGerman() ? "z#594.wav" : "z#63.wav");
+ playSound(TRANSLATE("z#63.wav", "z#594.wav"));
petDisplayMessage(1, GLASS_IS_UNBREAKABLE);
}
@@ -89,7 +90,7 @@ bool CLongStickDispenser::EnterRoomMsg(CEnterRoomMsg *msg) {
bool CLongStickDispenser::MouseButtonDownMsg(CMouseButtonDownMsg *msg) {
if (!_fieldC0) {
- playSound("z#62.wav");
+ playSound(TRANSLATE("z#62.wav", "z#593.wav"));
switch (_fieldBC) {
case 0:
diff --git a/engines/titanic/game/maitred/maitred_body.cpp b/engines/titanic/game/maitred/maitred_body.cpp
index 4cb12aac8f..4f8ca301c0 100644
--- a/engines/titanic/game/maitred/maitred_body.cpp
+++ b/engines/titanic/game/maitred/maitred_body.cpp
@@ -21,6 +21,7 @@
*/
#include "titanic/game/maitred/maitred_body.h"
+#include "titanic/translation.h"
namespace Titanic {
@@ -66,7 +67,7 @@ bool CMaitreDBody::ActMsg(CActMsg *msg) {
if (msg->_action == "LoseArm") {
_armed = false;
loadFrame(262);
- playSound("c#75.wav");
+ playSound(TRANSLATE("c#75.wav", "c#57.wav"));
}
return true;
diff --git a/engines/titanic/game/missiveomat.cpp b/engines/titanic/game/missiveomat.cpp
index c2f181d529..e60f695e88 100644
--- a/engines/titanic/game/missiveomat.cpp
+++ b/engines/titanic/game/missiveomat.cpp
@@ -24,6 +24,7 @@
#include "titanic/core/room_item.h"
#include "titanic/support/files_manager.h"
#include "titanic/titanic.h"
+#include "titanic/translation.h"
namespace Titanic {
@@ -90,7 +91,7 @@ bool CMissiveOMat::KeyCharMsg(CKeyCharMsg *msg) {
if (!msg->_key)
return true;
- playSound("z#228.wav");
+ playSound(TRANSLATE("z#228.wav", "z#134.wav"));
editMsg._mode = EDIT_KEYPRESS;
editMsg._param = msg->_key;
editMsg.execute(loginControl);
@@ -120,7 +121,7 @@ bool CMissiveOMat::KeyCharMsg(CKeyCharMsg *msg) {
if (!msg->_key)
return true;
- playSound("z#228.wav");
+ playSound(TRANSLATE("z#228.wav", "z#134.wav"));
editMsg._mode = EDIT_KEYPRESS;
editMsg._param = msg->_key;
editMsg.execute(loginControl);
diff --git a/engines/titanic/game/nav_helmet.cpp b/engines/titanic/game/nav_helmet.cpp
index 6a54d01cbd..ba3be2b644 100644
--- a/engines/titanic/game/nav_helmet.cpp
+++ b/engines/titanic/game/nav_helmet.cpp
@@ -23,6 +23,7 @@
#include "titanic/game/nav_helmet.h"
#include "titanic/pet_control/pet_control.h"
#include "titanic/star_control/star_control.h"
+#include "titanic/translation.h"
namespace Titanic {
@@ -85,8 +86,8 @@ bool CNavHelmet::PETHelmetOnOffMsg(CPETHelmetOnOffMsg *msg) {
setVisible(true);
starFn(STAR_HIDE);
playMovie(61, 120, MOVIE_NOTIFY_OBJECT);
- playSound("a#47.wav");
- playSound("a#48.wav");
+ playSound(TRANSLATE("a#47.wav", "a#40.wav"));
+ playSound(TRANSLATE("a#48.wav", "a#41.wav"));
if (pet) {
pet->decAreaLocks();
@@ -99,8 +100,8 @@ bool CNavHelmet::PETHelmetOnOffMsg(CPETHelmetOnOffMsg *msg) {
_helmetOn = true;
setVisible(true);
playMovie(0, 60, MOVIE_NOTIFY_OBJECT);
- playSound("a#48.wav");
- playSound("a#47.wav");
+ playSound(TRANSLATE("a#48.wav", "a#41.wav"));
+ playSound(TRANSLATE("a#47.wav", "a#40.wav"));
}
return true;
@@ -131,10 +132,10 @@ bool CNavHelmet::PETStarFieldLockMsg(CPETStarFieldLockMsg *msg) {
// but now it will also not play the sounds in
// photoview
if (msg->_value) {
- playSound("a#6.wav");
+ playSound(TRANSLATE("a#6.wav", "a#58.wav"));
starFn(LOCK_STAR);
} else {
- playSound("a#5.wav");
+ playSound(TRANSLATE("a#5.wav", "a#57.wav"));
starFn(UNLOCK_STAR);
}
}
diff --git a/engines/titanic/game/parrot/parrot_nut_bowl_actor.cpp b/engines/titanic/game/parrot/parrot_nut_bowl_actor.cpp
index 56c096eec1..440c874536 100644
--- a/engines/titanic/game/parrot/parrot_nut_bowl_actor.cpp
+++ b/engines/titanic/game/parrot/parrot_nut_bowl_actor.cpp
@@ -22,6 +22,7 @@
#include "titanic/game/parrot/parrot_nut_bowl_actor.h"
#include "titanic/core/room_item.h"
+#include "titanic/translation.h"
namespace Titanic {
@@ -70,7 +71,7 @@ bool CParrotNutBowlActor::BowlStateChangeMsg(CBowlStateChangeMsg *msg) {
if (!_puzzleDone) {
CReplaceBowlAndNutsMsg replaceMsg;
replaceMsg.execute(findRoom(), nullptr, MSGFLAG_SCAN);
- playSound("z#47.wav");
+ playSound(TRANSLATE("z#47.wav", "z#578.wav"));
}
_puzzleDone = true;
diff --git a/engines/titanic/game/parrot/parrot_nut_eater.cpp b/engines/titanic/game/parrot/parrot_nut_eater.cpp
index c8d944632f..4e0476d77a 100644
--- a/engines/titanic/game/parrot/parrot_nut_eater.cpp
+++ b/engines/titanic/game/parrot/parrot_nut_eater.cpp
@@ -22,6 +22,7 @@
#include "titanic/game/parrot/parrot_nut_eater.h"
#include "titanic/core/room_item.h"
+#include "titanic/translation.h"
namespace Titanic {
@@ -55,7 +56,7 @@ bool CParrotNutEater::MovieEndMsg(CMovieEndMsg *msg) {
CNutPuzzleMsg nutMsg("NutsGone");
nutMsg.execute(getRoom(), nullptr, MSGFLAG_SCAN);
- playSound("z#47.wav");
+ playSound(TRANSLATE("z#47.wav", "z#578.wav"));
return true;
}
@@ -70,7 +71,7 @@ bool CParrotNutEater::NutPuzzleMsg(CNutPuzzleMsg *msg) {
playMovie(MOVIE_NOTIFY_OBJECT | MOVIE_WAIT_FOR_FINISH);
movieEvent(68);
movieEvent(132);
- playSound("z#215.wav");
+ playSound(TRANSLATE("z#215.wav", "z#6.wav"));
CTrueTalkTriggerActionMsg triggerMsg;
triggerMsg._param1 = triggerMsg._param2 = 0;
@@ -85,10 +86,10 @@ bool CParrotNutEater::MovieFrameMsg(CMovieFrameMsg *msg) {
switch (msg->_frameNumber) {
case 68:
- playSound("z#214.wav", prox);
+ playSound(TRANSLATE("z#214.wav", "z#5.wav"), prox);
break;
case 132:
- playSound("z#216.wav", prox);
+ playSound(TRANSLATE("z#216.wav", "z#7.wav"), prox);
break;
default:
break;
diff --git a/engines/titanic/game/record_phonograph_button.cpp b/engines/titanic/game/record_phonograph_button.cpp
index 1bd2060193..a52183906b 100644
--- a/engines/titanic/game/record_phonograph_button.cpp
+++ b/engines/titanic/game/record_phonograph_button.cpp
@@ -21,6 +21,7 @@
*/
#include "titanic/game/record_phonograph_button.h"
+#include "titanic/translation.h"
namespace Titanic {
@@ -46,7 +47,7 @@ bool CRecordPhonographButton::MouseButtonDownMsg(CMouseButtonDownMsg *msg) {
recordMsg.execute(getParent());
if (recordMsg._canRecord) {
- playSound("z#58.wav");
+ playSound(TRANSLATE("z#58.wav", "z#589.wav"));
loadFrame(1);
_active = true;
}
@@ -56,7 +57,7 @@ bool CRecordPhonographButton::MouseButtonDownMsg(CMouseButtonDownMsg *msg) {
bool CRecordPhonographButton::PhonographStopMsg(CPhonographStopMsg *msg) {
if (_active) {
- playSound("z#57.wav");
+ playSound(TRANSLATE("z#57.wav", "z#588.wav"));
loadFrame(0);
_active = false;
}
diff --git a/engines/titanic/game/replacement_ear.cpp b/engines/titanic/game/replacement_ear.cpp
index d1274e92db..fff209202b 100644
--- a/engines/titanic/game/replacement_ear.cpp
+++ b/engines/titanic/game/replacement_ear.cpp
@@ -21,6 +21,7 @@
*/
#include "titanic/game/replacement_ear.h"
+#include "titanic/translation.h"
namespace Titanic {
@@ -41,7 +42,7 @@ void CReplacementEar::load(SimpleFile *file) {
bool CReplacementEar::VisibleMsg(CVisibleMsg *msg) {
setVisible(true);
playMovie(MOVIE_WAIT_FOR_FINISH);
- playSound("z#64.wav");
+ playSound(TRANSLATE("z#64.wav", "z#595.wav"));
return true;
}
diff --git a/engines/titanic/game/sgt/drawer.cpp b/engines/titanic/game/sgt/drawer.cpp
index 7288bbdc61..9c7736a72f 100644
--- a/engines/titanic/game/sgt/drawer.cpp
+++ b/engines/titanic/game/sgt/drawer.cpp
@@ -21,6 +21,7 @@
*/
#include "titanic/game/sgt/drawer.h"
+#include "titanic/translation.h"
namespace Titanic {
@@ -54,7 +55,7 @@ bool CDrawer::TurnOn(CTurnOn *msg) {
setVisible(true);
_statics->_drawer = "Open";
playMovie(_startFrame, _endFrame, MOVIE_NOTIFY_OBJECT | MOVIE_WAIT_FOR_FINISH);
- playSound("b#10.wav");
+ playSound(TRANSLATE("b#10.wav", "b#95.wav"));
}
return true;
@@ -67,7 +68,7 @@ bool CDrawer::TurnOff(CTurnOff *msg) {
_endFrame = 100;
_isClosed = true;
playMovie(_startFrame, _endFrame, MOVIE_NOTIFY_OBJECT | MOVIE_WAIT_FOR_FINISH);
- playSound("b#10.wav");
+ playSound(TRANSLATE("b#10.wav", "b#95.wav"));
}
return true;