[Scummvm-cvs-logs] CVS: scummvm/sound/softsynth/mt32 freeverb.cpp,1.3,1.4 partial.cpp,1.2,1.3 tables.cpp,1.2,1.3

Max Horn fingolfin at users.sourceforge.net
Sun May 8 14:52:10 CEST 2005


Update of /cvsroot/scummvm/scummvm/sound/softsynth/mt32
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28088/sound/softsynth/mt32

Modified Files:
	freeverb.cpp partial.cpp tables.cpp 
Log Message:
Comply to our coding conventions

Index: freeverb.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/softsynth/mt32/freeverb.cpp,v
retrieving revision 1.3
retrieving revision 1.4
diff -u -d -r1.3 -r1.4
--- freeverb.cpp	1 Jan 2005 16:20:17 -0000	1.3
+++ freeverb.cpp	8 May 2005 21:49:51 -0000	1.4
@@ -158,7 +158,7 @@
 void revmodel::processreplace(float *inputL, float *inputR, float *outputL, float *outputR, long numsamples, int skip) {
 	float outL, outR, input;
 
-	while(numsamples-- > 0) {
+	while (numsamples-- > 0) {
 		int i;
 
 		outL = outR = 0;

Index: partial.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/softsynth/mt32/partial.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- partial.cpp	20 Mar 2005 16:24:55 -0000	1.2
+++ partial.cpp	8 May 2005 21:49:51 -0000	1.3
@@ -669,9 +669,9 @@
 					tStat->envsize = synth->tables.envTime[(int)patchCache->filtEnv.envtime[tStat->envstat]];
 				} else {
 					Bit32u envTime = (int)patchCache->filtEnv.envtime[tStat->envstat];
-					if(tStat->envstat > 1) {
+					if (tStat->envstat > 1) {
 						int envDiff = abs(patchCache->filtEnv.envlevel[tStat->envstat] - patchCache->filtEnv.envlevel[tStat->envstat - 1]);
-						if(envTime > synth->tables.envDeltaMaxTime[envDiff]) {
+						if (envTime > synth->tables.envDeltaMaxTime[envDiff]) {
 							envTime = synth->tables.envDeltaMaxTime[envDiff];
 						}
 					}

Index: tables.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/softsynth/mt32/tables.cpp,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- tables.cpp	20 Mar 2005 16:24:55 -0000	1.2
+++ tables.cpp	8 May 2005 21:49:51 -0000	1.3
@@ -161,11 +161,11 @@
 		envTime[lf] = samples;
 
 		// Cap on envelope times depending on the level delta
-		if(elf == 0) {
+		if (elf == 0) {
 			envDeltaMaxTime[lf] = 63;
 		} else {
 			float cap = 11 * log(elf) + 64;
-			if(cap > 100.0f) {
+			if (cap > 100.0f) {
 				cap = 100.0f;
 			}
 			envDeltaMaxTime[lf] = (int)cap;
@@ -380,7 +380,7 @@
 
 				// Distance of full volume reduction
 				amplog = (float)(12.0f / (float)lf) * 24.0f;
-				if(distval > amplog) {
+				if (distval > amplog) {
 					tvaBiasMult[lf][distval] = 0;
 				} else {
 					dval = (amplog - (float)distval) / amplog;





More information about the Scummvm-git-logs mailing list