[Scummvm-cvs-logs] SF.net SVN: scummvm:[35103] scummvm/trunk/sound/fmopl.cpp
fingolfin at users.sourceforge.net
fingolfin at users.sourceforge.net
Mon Nov 17 12:07:06 CET 2008
Revision: 35103
http://scummvm.svn.sourceforge.net/scummvm/?rev=35103&view=rev
Author: fingolfin
Date: 2008-11-17 11:07:04 +0000 (Mon, 17 Nov 2008)
Log Message:
-----------
Saving 32kb DATA size
Modified Paths:
--------------
scummvm/trunk/sound/fmopl.cpp
Modified: scummvm/trunk/sound/fmopl.cpp
===================================================================
--- scummvm/trunk/sound/fmopl.cpp 2008-11-16 23:19:54 UTC (rev 35102)
+++ scummvm/trunk/sound/fmopl.cpp 2008-11-17 11:07:04 UTC (rev 35103)
@@ -179,7 +179,8 @@
/* envelope output curve table */
/* attack + decay + OFF */
//static int ENV_CURVE[2*EG_ENT+1];
-static int ENV_CURVE[2 * 4096 + 1]; // to keep it static ...
+//static int ENV_CURVE[2 * 4096 + 1]; // to keep it static ...
+static int *ENV_CURVE;
/* multiple table */
@@ -692,6 +693,9 @@
SIN_TABLE[SIN_ENT * 3 + s] = (s / (SIN_ENT / 4)) & 1 ? &TL_TABLE[EG_ENT] : SIN_TABLE[SIN_ENT * 2 + s];
}
+
+ ENV_CURVE = (int *)malloc(sizeof(int) * (2*EG_ENT+1));
+
/* envelope counter -> envelope output table */
for (i=0; i < EG_ENT; i++) {
/* ATTACK curve */
@@ -724,6 +728,7 @@
free(SIN_TABLE);
free(AMS_TABLE);
free(VIB_TABLE);
+ free(ENV_CURVE);
}
/* CSM Key Controll */
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