aboutsummaryrefslogtreecommitdiff
path: root/engines/kyra
diff options
context:
space:
mode:
authorJohannes Schickel2009-08-12 23:25:58 +0000
committerJohannes Schickel2009-08-12 23:25:58 +0000
commitdbe5f9998d891ccda4c35c0143ffb55d43ffc842 (patch)
tree32bdef69035aa04aba0a3c4b99dba6bd293c604f /engines/kyra
parent0a17555e73b709af0a947c045824a9b9bc253e39 (diff)
downloadscummvm-rg350-dbe5f9998d891ccda4c35c0143ffb55d43ffc842.tar.gz
scummvm-rg350-dbe5f9998d891ccda4c35c0143ffb55d43ffc842.tar.bz2
scummvm-rg350-dbe5f9998d891ccda4c35c0143ffb55d43ffc842.zip
Made debug statements a bit more consitant.
svn-id: r43336
Diffstat (limited to 'engines/kyra')
-rw-r--r--engines/kyra/sound_amiga.cpp13
1 files 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
+