From 5562f9e087cf486da68b4d1ed08a34ac260d1e93 Mon Sep 17 00:00:00 2001 From: Filippos Karapetis Date: Fri, 26 Nov 2010 14:25:18 +0000 Subject: SCI: Added a define to turn off channel remapping (for debugging) svn-id: r54496 --- engines/sci/sound/music.cpp | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'engines/sci') diff --git a/engines/sci/sound/music.cpp b/engines/sci/sound/music.cpp index f119c27b8e..d72af2b006 100644 --- a/engines/sci/sound/music.cpp +++ b/engines/sci/sound/music.cpp @@ -36,6 +36,8 @@ #include "sci/sound/midiparser_sci.h" #include "sci/sound/music.h" +//#define DISABLE_REMAPPING + namespace Sci { SciMusic::SciMusic(SciVersion soundVersion) @@ -327,6 +329,10 @@ void SciMusic::soundInitSnd(MusicEntry *pSnd) { // This one checks, if requested channel is available -> in that case give // caller that channel. Otherwise look for an unused one int16 SciMusic::tryToOwnChannel(MusicEntry *caller, int16 bestChannel) { +#ifdef DISABLE_REMAPPING + return bestChannel; +#endif + // Don't even try this for SCI0 if (_soundVersion <= SCI_VERSION_0_LATE) return bestChannel; -- cgit v1.2.3