From dbe5f9998d891ccda4c35c0143ffb55d43ffc842 Mon Sep 17 00:00:00 2001 From: Johannes Schickel Date: Wed, 12 Aug 2009 23:25:58 +0000 Subject: Made debug statements a bit more consitant. svn-id: r43336 --- engines/kyra/sound_amiga.cpp | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/engines/kyra/sound_amiga.cpp b/engines/kyra/sound_amiga.cpp index db7a1bc8a0..2bc6fc89ff 100644 --- a/engines/kyra/sound_amiga.cpp +++ b/engines/kyra/sound_amiga.cpp @@ -80,7 +80,8 @@ bool SoundAmiga::init() { } void SoundAmiga::loadSoundFile(uint file) { - debug(5, "SoundAmiga: playTrack %d", file); + debugC(5, kDebugLevelSound, "SoundAmiga::loadSoundFile(%d)", file); + static const char *const tableFilenames[3][2] = { { "introscr.mx", "introinst.mx" }, { "kyramusic.mx", 0 }, @@ -117,7 +118,8 @@ void SoundAmiga::loadSoundFile(uint file) { } void SoundAmiga::playTrack(uint8 track) { - debug(5, "SoundAmiga: playTrack %d", track); + debugC(5, kDebugLevelSound, "SoundAmiga::playTrack(%d)", track); + static const byte tempoIntro[6] = { 0x46, 0x55, 0x3C, 0x41, 0x78, 0x50 }; static const byte tempoIngame[23] = { 0x64, 0x64, 0x64, 0x64, 0x64, 0x73, 0x4B, 0x64, @@ -181,12 +183,12 @@ void SoundAmiga::playTrack(uint8 track) { } void SoundAmiga::haltTrack() { - debug(5, "SoundAmiga: haltTrack"); + debugC(5, kDebugLevelSound, "SoundAmiga::haltTrack()"); _driver->stopMusic(); } void SoundAmiga::beginFadeOut() { - debug(5, "SoundAmiga: beginFadeOut"); + debugC(5, kDebugLevelSound, "SoundAmiga::beginFadeOut()"); for (int i = 0x3F; i >= 0; --i) { _driver->setVolume((byte)i); _vm->delay(_vm->tickLength()); @@ -198,7 +200,7 @@ void SoundAmiga::beginFadeOut() { } void SoundAmiga::playSoundEffect(uint8 track) { - debug(5, "SoundAmiga: playSoundEffect %d", track); + debugC(5, kDebugLevelSound, "SoundAmiga::playSoundEffect(%d)", track); const byte* tableEntry = 0; bool pan = false; @@ -239,3 +241,4 @@ void SoundAmiga::playSoundEffect(uint8 track) { } } // end of namespace Kyra + -- cgit v1.2.3