diff options
-rw-r--r-- | sound/rate.h | 9 | ||||
-rw-r--r-- | sound/resample.cpp | 9 |
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 |