aboutsummaryrefslogtreecommitdiffstats
path: root/Alc
diff options
context:
space:
mode:
Diffstat (limited to 'Alc')
-rw-r--r--Alc/ALu.c5
-rw-r--r--Alc/mixer_c.c2
-rw-r--r--Alc/mixer_neon.c2
-rw-r--r--Alc/mixer_sse3.c2
-rw-r--r--Alc/mixer_sse41.c2
5 files changed, 6 insertions, 7 deletions
diff --git a/Alc/ALu.c b/Alc/ALu.c
index 6f0f602c..6c37df78 100644
--- a/Alc/ALu.c
+++ b/Alc/ALu.c
@@ -69,9 +69,8 @@ extern inline ALuint64 maxu64(ALuint64 a, ALuint64 b);
extern inline ALuint64 clampu64(ALuint64 val, ALuint64 min, ALuint64 max);
extern inline ALfloat lerp(ALfloat val1, ALfloat val2, ALfloat mu);
-extern inline ALfloat resample_fir4(const ALfloat (*restrict filter)[4],
- ALfloat val0, ALfloat val1, ALfloat val2, ALfloat val3,
- ALsizei frac);
+extern inline ALfloat resample_fir4(ALfloat val0, ALfloat val1, ALfloat val2, ALfloat val3,
+ const ALfloat *restrict filter);
extern inline void aluVectorSet(aluVector *restrict vector, ALfloat x, ALfloat y, ALfloat z, ALfloat w);
diff --git a/Alc/mixer_c.c b/Alc/mixer_c.c
index 738789f9..1635476a 100644
--- a/Alc/mixer_c.c
+++ b/Alc/mixer_c.c
@@ -59,7 +59,7 @@ const ALfloat *Resample_fir4_C(const InterpState *state, const ALfloat *restrict
src -= 1;
for(i = 0;i < numsamples;i++)
{
- dst[i] = resample_fir4(filter, src[0], src[1], src[2], src[3], frac);
+ dst[i] = resample_fir4(src[0], src[1], src[2], src[3], filter[frac]);
frac += increment;
src += frac>>FRACTIONBITS;
diff --git a/Alc/mixer_neon.c b/Alc/mixer_neon.c
index fbd0f158..3345290c 100644
--- a/Alc/mixer_neon.c
+++ b/Alc/mixer_neon.c
@@ -127,7 +127,7 @@ const ALfloat *Resample_fir4_Neon(const InterpState *state,
ALint pos = pos_[0];
frac = frac_[0];
do {
- dst[i] = resample_fir4(filter, src[pos], src[pos+1], src[pos+2], src[pos+3], frac);
+ dst[i] = resample_fir4(src[pos], src[pos+1], src[pos+2], src[pos+3], filter[frac]);
frac += increment;
pos += frac>>FRACTIONBITS;
diff --git a/Alc/mixer_sse3.c b/Alc/mixer_sse3.c
index 7e98105c..d60fed5f 100644
--- a/Alc/mixer_sse3.c
+++ b/Alc/mixer_sse3.c
@@ -88,7 +88,7 @@ const ALfloat *Resample_fir4_SSE3(const InterpState *state,
for(;i < numsamples;i++)
{
- dst[i] = resample_fir4(filter, src[pos], src[pos+1], src[pos+2], src[pos+3], frac);
+ dst[i] = resample_fir4(src[pos], src[pos+1], src[pos+2], src[pos+3], filter[frac]);
frac += increment;
pos += frac>>FRACTIONBITS;
diff --git a/Alc/mixer_sse41.c b/Alc/mixer_sse41.c
index 20a9d9c7..354d16b7 100644
--- a/Alc/mixer_sse41.c
+++ b/Alc/mixer_sse41.c
@@ -145,7 +145,7 @@ const ALfloat *Resample_fir4_SSE41(const InterpState *state,
for(;i < numsamples;i++)
{
- dst[i] = resample_fir4(filter, src[pos], src[pos+1], src[pos+2], src[pos+3], frac);
+ dst[i] = resample_fir4(src[pos], src[pos+1], src[pos+2], src[pos+3], filter[frac]);
frac += increment;
pos += frac>>FRACTIONBITS;