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

thebluegr at users.sourceforge.net thebluegr at users.sourceforge.net
Wed Nov 24 12:19:28 CET 2010


Revision: 54453
          http://scummvm.svn.sourceforge.net/scummvm/?rev=54453&view=rev
Author:   thebluegr
Date:     2010-11-24 11:19:27 +0000 (Wed, 24 Nov 2010)

Log Message:
-----------
SCI: Read MT-32 reverb data correctly (patch #3117434)

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-24 09:39:47 UTC (rev 54452)
+++ scummvm/trunk/engines/sci/sound/drivers/midi.cpp	2010-11-24 11:19:27 UTC (rev 54453)
@@ -475,11 +475,11 @@
 	// Skip reverb SysEx message
 	str->seek(11, SEEK_CUR);
 
-	// Read reverb data
-	for (int i = 0; i < kReverbConfigNr; i++) {
-		_reverbConfig[i][0] = str->readByte();
-		_reverbConfig[i][1] = str->readByte();
-		_reverbConfig[i][2] = str->readByte();
+	// Read reverb data (stored vertically - patch #3117434)
+	for (int j = 0; j < 3; ++j) {
+		for (int i = 0; i < kReverbConfigNr; i++) {
+			_reverbConfig[i][j] = str->readByte();
+		}
 	}
 
 	// Patches 1-48


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