aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer_c.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-09-29 18:27:11 -0700
committerChris Robinson <[email protected]>2015-09-29 20:39:12 -0700
commitdc10e56babf61b62c6cc779414103d7183100c58 (patch)
tree302dd43223b8c3678cbc726655de628bf5b617fb /Alc/mixer_c.c
parente13d553aefe68f63c1c7d479df80c44f4ab70a0f (diff)
Implement a 6-point sinc-lanczos filter
Diffstat (limited to 'Alc/mixer_c.c')
-rw-r--r--Alc/mixer_c.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/Alc/mixer_c.c b/Alc/mixer_c.c
index 6164eb00..59ee5ebf 100644
--- a/Alc/mixer_c.c
+++ b/Alc/mixer_c.c
@@ -14,6 +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); }
const ALfloat *Resample_copy32_C(const ALfloat *src, ALuint UNUSED(frac),
ALuint UNUSED(increment), ALfloat *restrict dst, ALuint numsamples)
@@ -46,6 +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)
#undef DECL_TEMPLATE