diff options
author | Max Horn | 2003-07-28 18:01:00 +0000 |
---|---|---|
committer | Max Horn | 2003-07-28 18:01:00 +0000 |
commit | 475bc7227725cf002558cd6e4224a110831c29f5 (patch) | |
tree | e3bfbe367ac88f5c78f131bc2a0becdeee9b5c3f /sound/resample.cpp | |
parent | 13eee4b06fd980ad835312d99d5b13a3e217f9bb (diff) | |
download | scummvm-rg350-475bc7227725cf002558cd6e4224a110831c29f5.tar.gz scummvm-rg350-475bc7227725cf002558cd6e4224a110831c29f5.tar.bz2 scummvm-rg350-475bc7227725cf002558cd6e4224a110831c29f5.zip |
moved st_gcd to resample.cpp
svn-id: r9257
Diffstat (limited to 'sound/resample.cpp')
-rw-r--r-- | sound/resample.cpp | 9 |
1 files changed, 9 insertions, 0 deletions
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 |