aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKari Salminen2007-08-14 08:47:49 +0000
committerKari Salminen2007-08-14 08:47:49 +0000
commitcbba39d0bba1343f65a84d35ffd508178dc0ecdb (patch)
tree5c63f2901458864af1bf4712a251bb9d6bd0d2d5
parent76e1be89c38cde652d22128f921f16c266ef7565 (diff)
downloadscummvm-rg350-cbba39d0bba1343f65a84d35ffd508178dc0ecdb.tar.gz
scummvm-rg350-cbba39d0bba1343f65a84d35ffd508178dc0ecdb.tar.bz2
scummvm-rg350-cbba39d0bba1343f65a84d35ffd508178dc0ecdb.zip
Not saving Apple IIGS instrument header's unneeded info anymore (Priority increment and spare byte).
svn-id: r28610
-rw-r--r--engines/agi/sound.cpp6
1 files changed, 2 insertions, 4 deletions
diff --git a/engines/agi/sound.cpp b/engines/agi/sound.cpp
index 3e1bfb9c30..c8754814ef 100644
--- a/engines/agi/sound.cpp
+++ b/engines/agi/sound.cpp
@@ -186,11 +186,9 @@ struct IIgsOscillatorList {
struct IIgsInstrumentHeader {
IIgsEnvelope env;
uint8 relseg;
- uint8 priority;
uint8 bendrange;
uint8 vibdepth;
uint8 vibspeed;
- uint8 spare;
IIgsOscillatorList oscList;
/**
@@ -202,11 +200,11 @@ struct IIgsInstrumentHeader {
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