From 0aadd20aeaac1d241087e913a2bf8171bb0def68 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Sun, 19 Oct 2014 11:34:14 +0200 Subject: SCI: Add debugging output --- engines/sci/sound/midiparser_sci.cpp | 2 ++ engines/sci/sound/music.cpp | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'engines/sci') diff --git a/engines/sci/sound/midiparser_sci.cpp b/engines/sci/sound/midiparser_sci.cpp index 7ee9cc9d28..7ebe47633a 100644 --- a/engines/sci/sound/midiparser_sci.cpp +++ b/engines/sci/sound/midiparser_sci.cpp @@ -487,6 +487,8 @@ void MidiParser_SCI::trackState(uint32 b) { s._sustain = (op2 != 0); break; case 0x4B: // voices + if (s._voices != op2) + warning("Voice change (%d to %d) without remapping", s._voices, op2); s._voices = op2; _pSnd->_chan[channel]._voices = op2; // Also sync our MusicEntry break; diff --git a/engines/sci/sound/music.cpp b/engines/sci/sound/music.cpp index f69f40eeca..62b17b2064 100644 --- a/engines/sci/sound/music.cpp +++ b/engines/sci/sound/music.cpp @@ -1111,7 +1111,8 @@ ChannelRemapping *SciMusic::determineChannelMap() { #ifdef DEBUG_REMAP - debug(" Song %d (%p), prio %d", songIndex, (void*)song, song->priority); + const char* name = g_sci->getEngineState()->_segMan->getObjectName(song->soundObj); + debug(" Song %d (%p) [%s], prio %d%s", songIndex, (void*)song, name, song->priority, song->playBed ? ", bed" : ""); #endif // Store backup. If we fail to map this song, we will revert to this. -- cgit v1.2.3