[Scummvm-cvs-logs] CVS: scummvm/sound resample.cpp,1.5,1.6 rate.h,1.6,1.7

Max Horn fingolfin at users.sourceforge.net
Mon Jul 28 11:02:01 CEST 2003


Update of /cvsroot/scummvm/scummvm/sound
In directory sc8-pr-cvs1:/tmp/cvs-serv23830

Modified Files:
	resample.cpp rate.h 
Log Message:
moved st_gcd to resample.cpp

Index: resample.cpp
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/resample.cpp,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -d -r1.5 -r1.6
--- resample.cpp	28 Jul 2003 01:50:46 -0000	1.5
+++ resample.cpp	28 Jul 2003 18:00:59 -0000	1.6
@@ -109,6 +109,15 @@
 static long SrcUD(resample_t r, long Nx);
 static long SrcEX(resample_t r, long Nx);
 
+/* here for linear interp.  might be useful for other things */
+static st_rate_t st_gcd(st_rate_t a, st_rate_t b)
+{
+	if (b == 0)
+		return a;
+	else
+		return st_gcd(b, a % b);
+}
+
 
 /*
  * Process options

Index: rate.h
===================================================================
RCS file: /cvsroot/scummvm/scummvm/sound/rate.h,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -d -r1.6 -r1.7
--- rate.h	28 Jul 2003 11:13:01 -0000	1.6
+++ rate.h	28 Jul 2003 18:01:00 -0000	1.7
@@ -30,15 +30,6 @@
 #define ST_EOF (-1)
 #define ST_SUCCESS (0)
 
-/* here for linear interp.  might be useful for other things */
-static st_rate_t st_gcd(st_rate_t a, st_rate_t b)
-{
-	if (b == 0)
-		return a;
-	else
-		return st_gcd(b, a % b);
-}
-
 static inline void clampedAdd(int16& a, int b) {
 	int val = a + b;
 





More information about the Scummvm-git-logs mailing list