aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMax Horn2003-07-28 18:01:00 +0000
committerMax Horn2003-07-28 18:01:00 +0000
commit475bc7227725cf002558cd6e4224a110831c29f5 (patch)
treee3bfbe367ac88f5c78f131bc2a0becdeee9b5c3f
parent13eee4b06fd980ad835312d99d5b13a3e217f9bb (diff)
downloadscummvm-rg350-475bc7227725cf002558cd6e4224a110831c29f5.tar.gz
scummvm-rg350-475bc7227725cf002558cd6e4224a110831c29f5.tar.bz2
scummvm-rg350-475bc7227725cf002558cd6e4224a110831c29f5.zip
moved st_gcd to resample.cpp
svn-id: r9257
-rw-r--r--sound/rate.h9
-rw-r--r--sound/resample.cpp9
2 files changed, 9 insertions, 9 deletions
diff --git a/sound/rate.h b/sound/rate.h
index 72ae5a6021..de1180b1f7 100644
--- a/sound/rate.h
+++ b/sound/rate.h
@@ -30,15 +30,6 @@ typedef eff_struct *eff_t;
#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;
diff --git a/sound/resample.cpp b/sound/resample.cpp
index b2758f4517..8796989967 100644
--- a/sound/resample.cpp
+++ b/sound/resample.cpp
@@ -109,6 +109,15 @@ int makeFilter(Float Imp[],
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