From b9e192b78a384ff13d87c606502373725042509c Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Thu, 5 Nov 2015 09:42:08 -0800 Subject: Implement a band-limited sinc resampler This is essentially a 12-point sinc resampler, unless it's resampling to a rate higher than the output, at which point it will vary between 12 and 24 points and do anti-aliasing to avoid/reduce frequencies going over nyquist. Code provided by Christopher Fitzgerald. --- Alc/mixer_sse3.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'Alc/mixer_sse3.c') diff --git a/Alc/mixer_sse3.c b/Alc/mixer_sse3.c index b673315b..7085c537 100644 --- a/Alc/mixer_sse3.c +++ b/Alc/mixer_sse3.c @@ -31,7 +31,7 @@ #include "mixer_defs.h" -const ALfloat *Resample_fir4_32_SSE3(const ALfloat *src, ALuint frac, ALuint increment, +const ALfloat *Resample_fir4_32_SSE3(const BsincState* UNUSED(state), const ALfloat *src, ALuint frac, ALuint increment, ALfloat *restrict dst, ALuint numsamples) { const __m128i increment4 = _mm_set1_epi32(increment*4); @@ -95,7 +95,7 @@ const ALfloat *Resample_fir4_32_SSE3(const ALfloat *src, ALuint frac, ALuint inc return dst; } -const ALfloat *Resample_fir8_32_SSE3(const ALfloat *src, ALuint frac, ALuint increment, +const ALfloat *Resample_fir8_32_SSE3(const BsincState* UNUSED(state), const ALfloat *src, ALuint frac, ALuint increment, ALfloat *restrict dst, ALuint numsamples) { const __m128i increment4 = _mm_set1_epi32(increment*4); -- cgit v1.2.3