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

buddha_ at users.sourceforge.net buddha_ at users.sourceforge.net
Thu Aug 9 19:07:37 CEST 2007


Revision: 28505
          http://scummvm.svn.sourceforge.net/scummvm/?rev=28505&view=rev
Author:   buddha_
Date:     2007-08-09 10:07:36 -0700 (Thu, 09 Aug 2007)

Log Message:
-----------
Added a couple of new constants and modified an existing one.

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

Modified: scummvm/trunk/engines/agi/sound.cpp
===================================================================
--- scummvm/trunk/engines/agi/sound.cpp	2007-08-09 16:51:55 UTC (rev 28504)
+++ scummvm/trunk/engines/agi/sound.cpp	2007-08-09 17:07:36 UTC (rev 28505)
@@ -53,6 +53,13 @@
 // 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 @@
 	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;


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