aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer_c.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-09-27 23:52:16 -0700
committerChris Robinson <[email protected]>2015-09-27 23:57:25 -0700
commitab6622a8d6912fa6ff8da9caa3fcaf96047ca14a (patch)
treea872017f199f85f55b55d21dcb939f96aad70077 /Alc/mixer_c.c
parent3e60b1898943c26d817aef8d31466c1fee5aa83b (diff)
Replace the cubic resampler with a 4-point sinc/lanczos filter
Diffstat (limited to 'Alc/mixer_c.c')
-rw-r--r--Alc/mixer_c.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Alc/mixer_c.c b/Alc/mixer_c.c
index d06e52b4..6164eb00 100644
--- a/Alc/mixer_c.c
+++ b/Alc/mixer_c.c
@@ -12,8 +12,8 @@ static inline ALfloat point32(const ALfloat *vals, ALuint UNUSED(frac))
{ return vals[0]; }
static inline ALfloat lerp32(const ALfloat *vals, ALuint frac)
{ return lerp(vals[0], vals[1], frac * (1.0f/FRACTIONONE)); }
-static inline ALfloat cubic32(const ALfloat *vals, ALuint frac)
-{ return cubic(vals[-1], vals[0], vals[1], vals[2], frac); }
+static inline ALfloat fir4_32(const ALfloat *vals, ALuint frac)
+{ return resample_fir4(vals[-1], vals[0], vals[1], vals[2], frac); }
const ALfloat *Resample_copy32_C(const ALfloat *src, ALuint UNUSED(frac),
ALuint UNUSED(increment), ALfloat *restrict dst, ALuint numsamples)
@@ -45,7 +45,7 @@ const ALfloat *Resample_##Sampler##_C(const ALfloat *src, ALuint frac, \
DECL_TEMPLATE(point32)
DECL_TEMPLATE(lerp32)
-DECL_TEMPLATE(cubic32)
+DECL_TEMPLATE(fir4_32)
#undef DECL_TEMPLATE