SCI: Add more audio debugging output

This commit is contained in:
Willem Jan Palenstijn 2015-02-15 18:28:34 +01:00
parent 165a8c26b9
commit f477de2009
2 changed files with 11 additions and 3 deletions

View File

@ -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;

View File

@ -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;