[Scummvm-cvs-logs] SF.net SVN: scummvm:[54492] scummvm/trunk/engines/sci/sound/drivers/midi. cpp

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Fri Nov 26 07:41:46 CET 2010


Revision: 54492
          http://scummvm.svn.sourceforge.net/scummvm/?rev=54492&view=rev
Author:   thebluegr
Date:     2010-11-26 06:41:45 +0000 (Fri, 26 Nov 2010)

Log Message:
-----------
SCI: Send the SCI0 reverb init after reading the reverb data

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

Modified: scummvm/trunk/engines/sci/sound/drivers/midi.cpp
===================================================================
--- scummvm/trunk/engines/sci/sound/drivers/midi.cpp	2010-11-26 06:08:04 UTC (rev 54491)
+++ scummvm/trunk/engines/sci/sound/drivers/midi.cpp	2010-11-26 06:41:45 UTC (rev 54492)
@@ -479,8 +479,6 @@
 
 	// Reverb default only used in (roughly) SCI0/SCI01
 	byte reverb = str->readByte();
-	if (_version <= SCI_VERSION_0_LATE)
-		setReverb(reverb);
 
 	_hasReverb = true;
 
@@ -488,8 +486,6 @@
 	str->seek(11, SEEK_CUR);
 
 	// Read reverb data (stored vertically - patch #3117434)
-	// TODO: we need to send this to the MT-32, if it's available,
-	// depending on the SCI version
 	for (int j = 0; j < 3; ++j) {
 		for (int i = 0; i < kReverbConfigNr; i++) {
 			_reverbConfig[i][j] = str->readByte();
@@ -521,6 +517,10 @@
 		sendMt32SysEx(0x100004, str, 9);
 	}
 
+	// Reverb for SCI0
+	if (_version <= SCI_VERSION_0_LATE)
+		setReverb(reverb);
+
 	// Send after-SysEx text
 	str->seek(0);
 	sendMt32SysEx(0x200000, str, 20);


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