diff options
Diffstat (limited to 'engines/sherlock')
-rw-r--r-- | engines/sherlock/music.h | 10 | ||||
-rw-r--r-- | engines/sherlock/scalpel/scalpel.cpp | 10 | ||||
-rw-r--r-- | engines/sherlock/tattoo/tattoo_talk.cpp | 2 |
3 files changed, 11 insertions, 11 deletions
diff --git a/engines/sherlock/music.h b/engines/sherlock/music.h index dc2ed0244f..1bcedf273b 100644 --- a/engines/sherlock/music.h +++ b/engines/sherlock/music.h @@ -67,6 +67,11 @@ private: MidiDriver *_midiDriver; Audio::SoundHandle _digitalMusicHandle; MusicType _musicType; + + /** + * Play the specified music resource + */ + bool playMusic(const Common::String &name); public: bool _musicPlaying; bool _musicOn; @@ -101,11 +106,6 @@ public: * Free any currently loaded song */ void freeSong(); - - /** - * Play the specified music resource - */ - bool playMusic(const Common::String &name); /** * Stop playing the music diff --git a/engines/sherlock/scalpel/scalpel.cpp b/engines/sherlock/scalpel/scalpel.cpp index 91e920d8f0..af9d613cce 100644 --- a/engines/sherlock/scalpel/scalpel.cpp +++ b/engines/sherlock/scalpel/scalpel.cpp @@ -279,7 +279,7 @@ bool ScalpelEngine::showCityCutscene() { Common::fill(&greyPalette[0], &greyPalette[PALETTE_SIZE], 142); _screen->fadeIn((const byte *)greyPalette, 3); - _music->playMusic("prolog1"); + _music->loadSong("prolog1"); _animation->_gfxLibraryFilename = "title.lib"; _animation->_soundLibraryFilename = "title.snd"; bool finished = _animation->play("26open1", true, 1, 255, true, 2); @@ -391,7 +391,7 @@ bool ScalpelEngine::showCityCutscene() { bool ScalpelEngine::showAlleyCutscene() { byte palette[PALETTE_SIZE]; - _music->playMusic("prolog2"); + _music->loadSong("prolog2"); _animation->_gfxLibraryFilename = "TITLE.LIB"; _animation->_soundLibraryFilename = "TITLE.SND"; @@ -470,7 +470,7 @@ bool ScalpelEngine::showStreetCutscene() { _animation->_gfxLibraryFilename = "TITLE.LIB"; _animation->_soundLibraryFilename = "TITLE.SND"; - _music->playMusic("prolog3"); + _music->loadSong("prolog3"); // wait a bit bool finished = _events->delay(500); @@ -501,7 +501,7 @@ bool ScalpelEngine::showStreetCutscene() { } bool ScalpelEngine::showOfficeCutscene() { - _music->playMusic("prolog4"); + _music->loadSong("prolog4"); _animation->_gfxLibraryFilename = "TITLE2.LIB"; _animation->_soundLibraryFilename = "TITLE.SND"; @@ -616,7 +616,7 @@ bool ScalpelEngine::showCityCutscene3DO() { finished = _events->delay(2500, true); // Play intro music - _music->playMusic("prolog"); + _music->loadSong("prolog"); // Fade screen to grey _screen->_backBuffer1.fill(0xCE59); // RGB565: 25, 50, 25 (grey) diff --git a/engines/sherlock/tattoo/tattoo_talk.cpp b/engines/sherlock/tattoo/tattoo_talk.cpp index 3ad64a1757..e61873ced9 100644 --- a/engines/sherlock/tattoo/tattoo_talk.cpp +++ b/engines/sherlock/tattoo/tattoo_talk.cpp @@ -383,7 +383,7 @@ OpcodeReturn TattooTalk::cmdPlaySong(const byte *&str) { str += 7; // Play the song - music.playMusic(music._currentSongName); + music.loadSong(music._currentSongName); // Copy the old song name to _nextSongName so that when the new song is finished, the old song will restart music._nextSongName = currentSong; |