aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer_sse3.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2015-11-05 09:42:08 -0800
committerChris Robinson <[email protected]>2015-11-05 09:42:08 -0800
commitb9e192b78a384ff13d87c606502373725042509c (patch)
treee5b99bba51f713e2f671b9ffbc37b22a1cdf5ba1 /Alc/mixer_sse3.c
parentdce3d0c7bf8f68c0dc4d98870f9e8119742004c0 (diff)
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.
Diffstat (limited to 'Alc/mixer_sse3.c')
-rw-r--r--Alc/mixer_sse3.c4
1 files changed, 2 insertions, 2 deletions
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);