aboutsummaryrefslogtreecommitdiff
path: root/engines/sci
diff options
context:
space:
mode:
authorWillem Jan Palenstijn2014-10-19 11:34:14 +0200
committerWillem Jan Palenstijn2015-02-15 14:01:35 +0100
commit0aadd20aeaac1d241087e913a2bf8171bb0def68 (patch)
tree73f0040e67fa2bb331eec73b7b04ab5347beb1da /engines/sci
parentb80e74af5dec7675a2bf4a3f51da8501518c2be2 (diff)
downloadscummvm-rg350-0aadd20aeaac1d241087e913a2bf8171bb0def68.tar.gz
scummvm-rg350-0aadd20aeaac1d241087e913a2bf8171bb0def68.tar.bz2
scummvm-rg350-0aadd20aeaac1d241087e913a2bf8171bb0def68.zip
SCI: Add debugging output
Diffstat (limited to 'engines/sci')
-rw-r--r--engines/sci/sound/midiparser_sci.cpp2
-rw-r--r--engines/sci/sound/music.cpp3
2 files changed, 4 insertions, 1 deletions
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.