[Scummvm-cvs-logs] SF.net SVN: scummvm: [28610] scummvm/trunk/engines/agi/sound.cpp

buddha_ at users.sourceforge.net buddha_ at users.sourceforge.net
Tue Aug 14 10:47:49 CEST 2007


Revision: 28610
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28610&view=rev
Author:   buddha_
Date:     2007-08-14 01:47:49 -0700 (Tue, 14 Aug 2007)

Log Message:
-----------
Not saving Apple IIGS instrument header's unneeded info anymore (Priority increment and spare byte).

Modified Paths:
--------------
    scummvm/trunk/engines/agi/sound.cpp

Modified: scummvm/trunk/engines/agi/sound.cpp
===================================================================
--- scummvm/trunk/engines/agi/sound.cpp	2007-08-14 08:03:13 UTC (rev 28609)
+++ scummvm/trunk/engines/agi/sound.cpp	2007-08-14 08:47:49 UTC (rev 28610)
@@ -186,11 +186,9 @@
 struct IIgsInstrumentHeader {
 	IIgsEnvelope env;
 	uint8 relseg;
-	uint8 priority;
 	uint8 bendrange;
 	uint8 vibdepth;
 	uint8 vibspeed;
-	uint8 spare;
 	IIgsOscillatorList oscList;
 
 	/**
@@ -202,11 +200,11 @@
 	bool read(Common::SeekableReadStream &stream, bool ignoreAddr = false) {
 		env.read(stream);
 		relseg    = stream.readByte();
-		priority  = stream.readByte();
+		byte priority = stream.readByte(); // Not needed? 32 in all tested data.
 		bendrange = stream.readByte();
 		vibdepth  = stream.readByte();
 		vibspeed  = stream.readByte();
-		spare     = stream.readByte();
+		byte spare    = stream.readByte(); // Not needed? 0 in all tested data.
 		byte wac  = stream.readByte(); // Read A wave count
 		byte wbc  = stream.readByte(); // Read B wave count
 		oscList.read(stream, wac, ignoreAddr); // Read the oscillators


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