aboutsummaryrefslogtreecommitdiff
path: root/engines/fullpipe
diff options
context:
space:
mode:
authorEugene Sandulenko2013-12-23 00:21:35 +0200
committerEugene Sandulenko2013-12-23 00:39:27 +0200
commitf8d1633de90a4f5cd70b8d1d7b474c70f71ab8e0 (patch)
tree454ccb14ceb42ba4517d5d2199af536ba7b42b1a /engines/fullpipe
parent0a210e8f4e55d5c3cf6d92c71c051087357f6e8b (diff)
downloadscummvm-rg350-f8d1633de90a4f5cd70b8d1d7b474c70f71ab8e0.tar.gz
scummvm-rg350-f8d1633de90a4f5cd70b8d1d7b474c70f71ab8e0.tar.bz2
scummvm-rg350-f8d1633de90a4f5cd70b8d1d7b474c70f71ab8e0.zip
FULLPIPE: Implement scene08_setupMusic()
Diffstat (limited to 'engines/fullpipe')
-rw-r--r--engines/fullpipe/fullpipe.h1
-rw-r--r--engines/fullpipe/scenes/scene08.cpp3
-rw-r--r--engines/fullpipe/sound.cpp6
3 files changed, 8 insertions, 2 deletions
diff --git a/engines/fullpipe/fullpipe.h b/engines/fullpipe/fullpipe.h
index f4ac84b454..75a7630456 100644
--- a/engines/fullpipe/fullpipe.h
+++ b/engines/fullpipe/fullpipe.h
@@ -149,6 +149,7 @@ public:
void stopAllSounds();
void toggleMute();
void playSound(int id, int flag);
+ void playTrack(GameVar *sceneVar, const char *name, bool delayed);
void startSceneTrack();
void stopSoundStream2();
void stopAllSoundStreams();
diff --git a/engines/fullpipe/scenes/scene08.cpp b/engines/fullpipe/scenes/scene08.cpp
index c7a6589e98..9c904e1f7f 100644
--- a/engines/fullpipe/scenes/scene08.cpp
+++ b/engines/fullpipe/scenes/scene08.cpp
@@ -103,7 +103,8 @@ void scene08_initScene(Scene *sc) {
}
void scene08_setupMusic() {
- warning("STUB: scene08_setupMusic()");
+ if (g_fp->getObjectState(sO_TummyTrampie) == g_fp->getObjectEnumState(sO_TummyTrampie, sO_IsSleeping))
+ g_fp->playTrack(g_fp->getGameLoaderGameVar()->getSubVarByName("SC_8"), "MUSIC_ARCADE", 1);
}
int scene08_updateCursor() {
diff --git a/engines/fullpipe/sound.cpp b/engines/fullpipe/sound.cpp
index de0a666974..a08152e94c 100644
--- a/engines/fullpipe/sound.cpp
+++ b/engines/fullpipe/sound.cpp
@@ -128,7 +128,11 @@ void FullpipeEngine::toggleMute() {
}
void FullpipeEngine::playSound(int id, int flag) {
- warning("STUB: FullpipeEngine::playSounds(%d, %d)", id, flag);
+ warning("STUB: FullpipeEngine::playSound(%d, %d)", id, flag);
+}
+
+void FullpipeEngine::playTrack(GameVar *sceneVar, const char *name, bool delayed) {
+ warning("STUB: FullpipeEngine::playTrack(var, %s, %d)", name, delayed);
}
void global_messageHandler_handleSound(ExCommand *cmd) {