TITANIC: Change Titania to use speech sound type

This commit is contained in:
Paul Gilbert 2017-06-25 10:56:42 -04:00
parent f16505b128
commit a04f35b4df
3 changed files with 14 additions and 8 deletions

View File

@ -57,7 +57,8 @@ bool CRestrictedMove::MouseButtonDownMsg(CMouseButtonDownMsg *msg) {
playSound("a#17.wav");
petDisplayMessage(1, CHECK_IN_AT_RECEPTION);
} else if (compareViewNameTo("Titania.Node 1.S")) {
playSound("z#226.wav");
CProximity prox(Audio::Mixer::kSpeechSoundType);
playSound("z#226.wav", prox);
changeView(_destination);
}

View File

@ -175,7 +175,8 @@ bool CTitania::ActMsg(CActMsg *msg) {
if (_centralCore && _eye1 && _eye2 && _ear1 && _ear2 && _nose && _mouth
&& _speechCentre && _olfactoryCentre && _auditoryCentre) {
playSound("z#47.wav");
CProximity prox(Audio::Mixer::kSpeechSoundType);
playSound("z#47.wav", prox);
CActMsg actMsg("Woken");
actMsg.execute("MouthSlot");

View File

@ -54,6 +54,7 @@ bool CTitaniaSpeech::ActMsg(CActMsg *msg) {
CActMsg actMsg;
if (msg->_action == "TitaniaSpeech") {
CProximity prox(Audio::Mixer::kSpeechSoundType);
switch (_actionNum) {
case 1:
movieSetAudioTiming(true);
@ -79,7 +80,7 @@ bool CTitaniaSpeech::ActMsg(CActMsg *msg) {
visibleMsg.execute("TitaniaStillControl");
loadSound("a#10.wav");
playMovie(585, 706, MOVIE_WAIT_FOR_FINISH | MOVIE_NOTIFY_OBJECT);
playSound("a#10.wav");
playSound("a#10.wav", prox);
break;
case 4:
@ -87,7 +88,7 @@ bool CTitaniaSpeech::ActMsg(CActMsg *msg) {
visibleMsg.execute("TitaniaStillControl");
loadSound("a#9.wav");
playMovie(707, 905, MOVIE_WAIT_FOR_FINISH | MOVIE_NOTIFY_OBJECT);
playSound("a#9.wav");
playSound("a#9.wav", prox);
break;
case 5:
@ -95,7 +96,7 @@ bool CTitaniaSpeech::ActMsg(CActMsg *msg) {
visibleMsg.execute("TitaniaStillControl");
loadSound("a#8.wav");
playMovie(906, 938, MOVIE_WAIT_FOR_FINISH | MOVIE_NOTIFY_OBJECT);
playSound("a#8.wav");
playSound("a#8.wav", prox);
break;
default:
@ -122,8 +123,10 @@ bool CTitaniaSpeech::MovieEndMsg(CMovieEndMsg *msg) {
bool CTitaniaSpeech::MovieFrameMsg(CMovieFrameMsg *msg) {
int frame = getMovieFrame();
if (!frame)
playSound("a#12.wav");
if (frame == 0) {
CProximity prox(Audio::Mixer::kSpeechSoundType);
playSound("a#12.wav", prox);
}
return true;
}
@ -138,7 +141,8 @@ bool CTitaniaSpeech::TimerMsg(CTimerMsg *msg) {
++_actionNum;
actMsg.execute(this);
} else if (msg->_action == "Para2") {
playSound("a#11.wav");
CProximity prox(Audio::Mixer::kSpeechSoundType);
playSound("a#11.wav", prox);
} else {
frameMsg._frameNumber = _backgroundFrame++;
frameMsg.execute("TitaniaStillControl");