aboutsummaryrefslogtreecommitdiff
path: root/engines
diff options
context:
space:
mode:
authorKari Salminen2007-08-09 17:07:36 +0000
committerKari Salminen2007-08-09 17:07:36 +0000
commit03d5bbf253d5d0bc59d5cc8c48cd7524ebaa1a12 (patch)
tree4bf775d7d26510fef1e566481607172cc4a6f40a /engines
parent8171ead378420bfc04bd19453d857feb2189d4a8 (diff)
downloadscummvm-rg350-03d5bbf253d5d0bc59d5cc8c48cd7524ebaa1a12.tar.gz
scummvm-rg350-03d5bbf253d5d0bc59d5cc8c48cd7524ebaa1a12.tar.bz2
scummvm-rg350-03d5bbf253d5d0bc59d5cc8c48cd7524ebaa1a12.zip
Added a couple of new constants and modified an existing one.
svn-id: r28505
Diffstat (limited to 'engines')
-rw-r--r--engines/agi/sound.cpp12
1 files changed, 11 insertions, 1 deletions
diff --git a/engines/agi/sound.cpp b/engines/agi/sound.cpp
index b7a2918d33..4a4712a708 100644
--- a/engines/agi/sound.cpp
+++ b/engines/agi/sound.cpp
@@ -53,6 +53,13 @@ struct IIgsEnvelope {
// 2**(1/12) i.e. the 12th root of 2
#define SEMITONE 1.059463094359295
+// Size of the SIERRASTANDARD file (i.e. the wave file i.e. the sample data used by the instruments).
+#define SIERRASTANDARD_SIZE 65536
+
+// Maximum number of instruments in an Apple IIGS instrument set.
+// Chosen empirically based on Apple IIGS AGI game data, increase if needed.
+#define MAX_INSTRUMENTS 28
+
struct IIgsWaveInfo {
uint8 top;
uint8 addr;
@@ -74,7 +81,10 @@ struct IIgsWaveInfo {
uint16 relPitch; ///< 8b.8b fixed point, big endian?
};
-#define MAX_WAVE_COUNT 8
+// Maximum number of waves in an Apple IIGS instrument's wave list.
+// Chosen empirically based on Apple IIGS AGI game data, increase if needed.
+#define MAX_WAVE_COUNT 4
+
struct IIgsInstrumentHeader {
IIgsEnvelope env;
uint8 relseg;