From 30820c1bdeadb49b4eeb44d46e3b472460cdd53a Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 25 Nov 2010 23:05:44 -0800 Subject: Add a cubic resampler --- Alc/mixer.c | 63 +++++++++++++++++++++++++++++++++++++++++++++++++++++++------ 1 file changed, 57 insertions(+), 6 deletions(-) (limited to 'Alc') diff --git a/Alc/mixer.c b/Alc/mixer.c index ff5c669d..f31d7985 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -42,21 +42,38 @@ static __inline ALdouble lerp(ALdouble val1, ALdouble val2, ALint frac) val1 += ((val2-val1) * (frac * (1.0/(1<