diff options
author | Filippos Karapetis | 2010-08-02 21:20:43 +0000 |
---|---|---|
committer | Filippos Karapetis | 2010-08-02 21:20:43 +0000 |
commit | 5ca6b33ba7bd9b6c5c35635d8f56f695ca931ce1 (patch) | |
tree | 9ffba9e62217d4e105caddb1405ab878c330a743 /engines/sci/sound/soundcmd.cpp | |
parent | 09f4562551c6f26f5eac8a048051cd379ef93a2d (diff) | |
download | scummvm-rg350-5ca6b33ba7bd9b6c5c35635d8f56f695ca931ce1.tar.gz scummvm-rg350-5ca6b33ba7bd9b6c5c35635d8f56f695ca931ce1.tar.bz2 scummvm-rg350-5ca6b33ba7bd9b6c5c35635d8f56f695ca931ce1.zip |
SCI: Silenced some sound related warnings. Added an empty function for kDoSound(Restore), called when restoring games
svn-id: r51661
Diffstat (limited to 'engines/sci/sound/soundcmd.cpp')
-rw-r--r-- | engines/sci/sound/soundcmd.cpp | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/engines/sci/sound/soundcmd.cpp b/engines/sci/sound/soundcmd.cpp index b12037065b..52c97eba90 100644 --- a/engines/sci/sound/soundcmd.cpp +++ b/engines/sci/sound/soundcmd.cpp @@ -147,6 +147,12 @@ void SoundCommandParser::processPlaySound(reg_t obj) { _music->soundPlay(musicSlot); } +reg_t SoundCommandParser::kDoSoundRestore(int argc, reg_t *argv, reg_t acc) { + // Called after loading, to restore the playlist + // We don't really use or need this + return acc; +} + reg_t SoundCommandParser::kDoSoundDummy(int argc, reg_t *argv, reg_t acc) { warning("cmdDummy invoked"); // not supposed to occur return acc; @@ -246,7 +252,8 @@ reg_t SoundCommandParser::kDoSoundPause(int argc, reg_t *argv, reg_t acc) { } else { // pause a playlist slot MusicEntry *musicSlot = _music->getSlot(obj); if (!musicSlot) { - warning("kDoSound(pause): Slot not found (%04x:%04x)", PRINT_REG(obj)); + // This happens quite frequently + debugC(2, kDebugLevelSound, "kDoSound(pause): Slot not found (%04x:%04x)", PRINT_REG(obj)); return acc; } |