From 2595d85ccad8b3543a331ad7cd3fd74830399b6e Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 25 Nov 2010 13:45:35 -0800 Subject: Double-up the interpolation functions (and make them use doubles) --- Alc/mixer.c | 111 +++++++++++++++++++++++++----------------------------------- 1 file changed, 46 insertions(+), 65 deletions(-) (limited to 'Alc/mixer.c') diff --git a/Alc/mixer.c b/Alc/mixer.c index 92c54e46..596db64c 100644 --- a/Alc/mixer.c +++ b/Alc/mixer.c @@ -37,56 +37,37 @@ #include "bs2b.h" -static __inline ALfloat point32(ALfloat val1, ALfloat val2, ALint frac) +static __inline ALdouble point(ALdouble val1, ALdouble val2, ALint frac) { return val1; (void)val2; (void)frac; } -static __inline ALfloat lerp32(ALfloat val1, ALfloat val2, ALint frac) +static __inline ALdouble lerp(ALdouble val1, ALdouble val2, ALint frac) { val1 += ((val2-val1) * (frac * (1.0/(1<