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

buddha_ at users.sourceforge.net buddha_ at users.sourceforge.net
Thu Aug 9 19:26:41 CEST 2007


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

Log Message:
-----------
Brought back and changed some variables from inside a #if 0 ... #endif

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

Modified: scummvm/trunk/engines/agi/sound.cpp
===================================================================
--- scummvm/trunk/engines/agi/sound.cpp	2007-08-09 17:11:38 UTC (rev 28506)
+++ scummvm/trunk/engines/agi/sound.cpp	2007-08-09 17:26:41 UTC (rev 28507)
@@ -110,11 +110,9 @@
 	IIgsInstrumentHeader instrument;
 };
 
-#if 0
-static SoundInstrument *instruments;
-static int numInstruments;
-static uint8 *wave;
-#endif
+static IIgsInstrumentHeader g_instruments[MAX_INSTRUMENTS];
+static uint g_numInstruments = 0;
+static int16 g_wave[SIERRASTANDARD_SIZE]; // FIXME? Should this be allocated from the heap? (Size is 128KiB)
 
 bool readIIgsEnvelope(IIgsEnvelope &envelope, Common::SeekableReadStream &stream) {
 	for (int segNum = 0; segNum < ENVELOPE_SEGMENT_COUNT; segNum++) {


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