diff options
author | Paul Gilbert | 2017-01-29 22:43:49 -0500 |
---|---|---|
committer | Paul Gilbert | 2017-01-29 22:43:49 -0500 |
commit | 2349f915424c48dc001ec8840d7df371fa836c6d (patch) | |
tree | b7011b0767a8997db500d26e1cddf0570e3de49c /engines | |
parent | 9059779b9d214ffd380370fc309d707d10d7440d (diff) | |
download | scummvm-rg350-2349f915424c48dc001ec8840d7df371fa836c6d.tar.gz scummvm-rg350-2349f915424c48dc001ec8840d7df371fa836c6d.tar.bz2 scummvm-rg350-2349f915424c48dc001ec8840d7df371fa836c6d.zip |
TITANIC: Implemented CMusicWave stop method
Diffstat (limited to 'engines')
-rw-r--r-- | engines/titanic/sound/music_wave.cpp | 18 |
1 files changed, 17 insertions, 1 deletions
diff --git a/engines/titanic/sound/music_wave.cpp b/engines/titanic/sound/music_wave.cpp index 6cfab5aed4..835f4bc130 100644 --- a/engines/titanic/sound/music_wave.cpp +++ b/engines/titanic/sound/music_wave.cpp @@ -80,7 +80,23 @@ CWaveFile *CMusicWave::createWaveFile(const CString &name) { } void CMusicWave::stop() { - // TODO + if (_gameObjects[0]) { + switch (_instrument) { + case MV_PIANO: + _gameObjects[1]->setVisible(false); + _gameObjects[2]->setVisible(false); + _gameObjects[3]->setVisible(false); + _gameObjects[0]->playMovie(29, 58, MOVIE_STOP_PREVIOUS); + break; + + case MV_BELLS: + _gameObjects[0]->stopMovie(); + break; + + default: + break; + } + } } void CMusicWave::trigger() { |