[Scummvm-cvs-logs] SF.net SVN: scummvm: [29005] scummvm/branches/gsoc2007-mixer/sound/rate.cpp

dogmatixman at users.sourceforge.net dogmatixman at users.sourceforge.net
Fri Sep 21 15:07:16 CEST 2007


Revision: 29005
          http://scummvm.svn.sourceforge.net/scummvm/?rev=29005&view=rev
Author:   dogmatixman
Date:     2007-09-21 06:07:15 -0700 (Fri, 21 Sep 2007)

Log Message:
-----------
Another simplification to the main filter loop in the FilteringRateConverter.

Modified Paths:
--------------
    scummvm/branches/gsoc2007-mixer/sound/rate.cpp

Modified: scummvm/branches/gsoc2007-mixer/sound/rate.cpp
===================================================================
--- scummvm/branches/gsoc2007-mixer/sound/rate.cpp	2007-09-21 08:55:26 UTC (rev 29004)
+++ scummvm/branches/gsoc2007-mixer/sound/rate.cpp	2007-09-21 13:07:15 UTC (rev 29005)
@@ -299,7 +299,7 @@
 	uint16 toFetch;
 	
 	/*
-     * Fraction of the input frequency which should be used as passband for
+	 * Fraction of the input frequency which should be used as passband for
 	 * the filter design.
 	 */
 	double lowpassBW;
@@ -472,14 +472,15 @@
 		 * outputs
 		 */
 		 
-		double *base = coeffs + (currBank * subLen);
+		double *coeffBase = coeffs + (currBank * subLen);
+		st_sample_t *inputBase = inBuf + inPos;
 		 
 		for (i = 0; i < subLen; i++) {
-			accum0 += (double)inBuf[inPos + numChan * i]
-						* base[i];
+			accum0 += (double)inputBase[numChan * i]
+					* coeffBase[i];
 			if (stereo) {
-				accum1 += (double)inBuf[inPos + numChan * i + 1]
-						* base[i];
+				accum1 += (double)inputBase[numChan * i + 1]
+						* coeffBase[i];
 			}
 		}
 		


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