From f477de200916f68fe8e82025f80b13e8288f6589 Mon Sep 17 00:00:00 2001 From: Willem Jan Palenstijn Date: Sun, 15 Feb 2015 18:28:34 +0100 Subject: SCI: Add more audio debugging output --- engines/sci/sound/midiparser_sci.cpp | 2 +- engines/sci/sound/music.cpp | 12 ++++++++++-- 2 files changed, 11 insertions(+), 3 deletions(-) (limited to 'engines/sci') diff --git a/engines/sci/sound/midiparser_sci.cpp b/engines/sci/sound/midiparser_sci.cpp index ed61a57729..9f0d8d150f 100644 --- a/engines/sci/sound/midiparser_sci.cpp +++ b/engines/sci/sound/midiparser_sci.cpp @@ -505,7 +505,7 @@ void MidiParser_SCI::trackState(uint32 b) { _pSnd->_chan[channel]._mute = m; // CHECKME: Should we directly call remapChannels() if _mainThreadCalled? _music->needsRemap(); - debugC(2, kDebugLevelSound, "Dynamic mute change (mainThread = %d)", _mainThreadCalled); + debugC(2, kDebugLevelSound, "Dynamic mute change (arg = %d, mainThread = %d)", m, _mainThreadCalled); } } break; diff --git a/engines/sci/sound/music.cpp b/engines/sci/sound/music.cpp index 7156e3c099..dca73c3f51 100644 --- a/engines/sci/sound/music.cpp +++ b/engines/sci/sound/music.cpp @@ -1154,10 +1154,18 @@ ChannelRemapping *SciMusic::determineChannelMap() { if (c == 0xFF || c == 0xFE || c == 0x0F) continue; const MusicEntryChannel &channel = song->_chan[c]; - if (channel._dontMap) + if (channel._dontMap) { +#ifdef DEBUG_REMAP + debug(" Channel %d dontMap, skipping", c); +#endif continue; - if (channel._mute) + } + if (channel._mute) { +#ifdef DEBUG_REMAP + debug(" Channel %d muted, skipping", c); +#endif continue; + } bool dontRemap = channel._dontRemap || song->playBed; -- cgit v1.2.3