aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer_c.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-10-11 07:37:22 -0700
committerChris Robinson <[email protected]>2015-10-11 07:37:22 -0700
commit00e419e9480e8d26e5fb5e1f03cc0824a6b8d917 (patch)
treef813f217a9f1f6eca1097a81208a83171eeb8f63 /Alc/mixer_c.c
parent0211831858fe42b5a95f6992bbdc3d925d589a75 (diff)
Replace the sinc6 resampler with sinc8, and make SSE versions
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 0d3e99a6..c9fa730a 100644
--- a/Alc/mixer_c.c
+++ b/Alc/mixer_c.c
@@ -14,8 +14,8 @@ static inline ALfloat lerp32(const ALfloat *vals, ALuint frac)
{ return lerp(vals[0], vals[1], frac * (1.0f/FRACTIONONE)); }
static inline ALfloat fir4_32(const ALfloat *vals, ALuint frac)
{ return resample_fir4(vals[-1], vals[0], vals[1], vals[2], frac); }
-static inline ALfloat fir6_32(const ALfloat *vals, ALuint frac)
-{ return resample_fir6(vals[-2], vals[-1], vals[0], vals[1], vals[2], vals[3], frac); }
+static inline ALfloat fir8_32(const ALfloat *vals, ALuint frac)
+{ return resample_fir8(vals[-3], vals[-2], vals[-1], vals[0], vals[1], vals[2], vals[3], vals[4], frac); }
const ALfloat *Resample_copy32_C(const ALfloat *src, ALuint UNUSED(frac),
ALuint UNUSED(increment), ALfloat *restrict dst, ALuint numsamples)
@@ -48,7 +48,7 @@ const ALfloat *Resample_##Sampler##_C(const ALfloat *src, ALuint frac, \
DECL_TEMPLATE(point32)
DECL_TEMPLATE(lerp32)
DECL_TEMPLATE(fir4_32)
-DECL_TEMPLATE(fir6_32)
+DECL_TEMPLATE(fir8_32)
#undef DECL_TEMPLATE