aboutsummaryrefslogtreecommitdiff
path: root/engines/scumm/imuse/imuse_player.cpp
diff options
context:
space:
mode:
authorJamieson Christian2006-02-26 22:23:29 +0000
committerJamieson Christian2006-02-26 22:23:29 +0000
commit52d55bf976770ef2f0bc6cd8680978f28521dc2e (patch)
tree3d8129edadd88821ca888f2f2137ccc988c71c33 /engines/scumm/imuse/imuse_player.cpp
parent52970c9936f82c727eecbd8e64a8a162e3ca4ec2 (diff)
downloadscummvm-rg350-52d55bf976770ef2f0bc6cd8680978f28521dc2e.tar.gz
scummvm-rg350-52d55bf976770ef2f0bc6cd8680978f28521dc2e.tar.bz2
scummvm-rg350-52d55bf976770ef2f0bc6cd8680978f28521dc2e.zip
Removed deprecated IMUSE_DEBUG #define in favor of debugC calls using the runtime-selectable DEBUG_IMUSE category.
svn-id: r20950
Diffstat (limited to 'engines/scumm/imuse/imuse_player.cpp')
-rw-r--r--engines/scumm/imuse/imuse_player.cpp13
1 files changed, 3 insertions, 10 deletions
diff --git a/engines/scumm/imuse/imuse_player.cpp b/engines/scumm/imuse/imuse_player.cpp
index 59cb998021..b73eb2a3bf 100644
--- a/engines/scumm/imuse/imuse_player.cpp
+++ b/engines/scumm/imuse/imuse_player.cpp
@@ -129,9 +129,7 @@ bool Player::startSound(int sound, MidiDriver *midi, bool passThrough) {
return false;
}
-#ifdef IMUSE_DEBUG
- debug(0, "Starting music %d", sound);
-#endif
+ debugC(DEBUG_IMUSE, "Starting music %d", sound);
return true;
}
@@ -153,10 +151,7 @@ bool Player::isFadingOut() const {
void Player::clear() {
if (!_active)
return;
-
-#ifdef IMUSE_DEBUG
- debug(0, "Stopping music %d", _id);
-#endif
+ debugC(DEBUG_IMUSE, "Stopping music %d", _id);
if (_parser) {
_parser->unloadMusic();
@@ -386,7 +381,6 @@ void Player::sysEx(byte *p, uint16 len) {
if (len >= sizeof(buf) * 2)
return;
-#ifdef IMUSE_DEBUG
if (!_scanning) {
for (a = 0; a < len + 1 && a < 19; ++a) {
sprintf((char *)&buf[a*3], " %02X", p[a]);
@@ -396,9 +390,8 @@ void Player::sysEx(byte *p, uint16 len) {
++a;
} // end if
buf[a*3] = '\0';
- debug(0, "[%02d] SysEx:%s", _id, buf);
+ debugC(DEBUG_IMUSE, "[%02d] SysEx:%s", _id, buf);
}
-#endif
switch (code = *p++) {
case 0: