[Scummvm-cvs-logs] SF.net SVN: scummvm:[54496] scummvm/trunk/engines/sci/sound/music.cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Fri Nov 26 15:25:18 CET 2010


Revision: 54496
          http://scummvm.svn.sourceforge.net/scummvm/?rev=54496&view=rev
Author:   thebluegr
Date:     2010-11-26 14:25:18 +0000 (Fri, 26 Nov 2010)

Log Message:
-----------
SCI: Added a define to turn off channel remapping (for debugging)

Modified Paths:
--------------
    scummvm/trunk/engines/sci/sound/music.cpp

Modified: scummvm/trunk/engines/sci/sound/music.cpp
===================================================================
--- scummvm/trunk/engines/sci/sound/music.cpp	2010-11-26 12:37:24 UTC (rev 54495)
+++ scummvm/trunk/engines/sci/sound/music.cpp	2010-11-26 14:25:18 UTC (rev 54496)
@@ -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 @@
 // 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;


This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.




More information about the Scummvm-git-logs mailing list