aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer_c.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2017-02-12 21:35:08 -0800
committerChris Robinson <[email protected]>2017-02-12 21:35:08 -0800
commit65f9b2792c50ae730a9f16680f931a9884e2b02c (patch)
tree19ad50741615169e7848a432e54b9031d39bff5b /Alc/mixer_c.c
parent27695e2b24dea23d0db451fb0f9ae1c1af6f416e (diff)
Clean up the bsinc mixer a bit
Diffstat (limited to 'Alc/mixer_c.c')
-rw-r--r--Alc/mixer_c.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/mixer_c.c b/Alc/mixer_c.c
index 15c603ca..1284371b 100644
--- a/Alc/mixer_c.c
+++ b/Alc/mixer_c.c
@@ -62,10 +62,10 @@ const ALfloat *Resample_bsinc32_C(const BsincState *state, const ALfloat *restri
const ALfloat *fil, *scd, *phd, *spd;
const ALfloat sf = state->sf;
const ALsizei m = state->m;
- const ALint l = state->l;
- ALsizei j_s, j_f, pi, i;
+ ALsizei j_f, pi, i;
ALfloat pf, r;
+ src += state->l;
for(i = 0;i < dstlen;i++)
{
// Calculate the phase index and factor.
@@ -81,9 +81,9 @@ const ALfloat *Resample_bsinc32_C(const BsincState *state, const ALfloat *restri
// Apply the scale and phase interpolated filter.
r = 0.0f;
- for(j_f = 0,j_s = l;j_f < m;j_f++,j_s++)
+ for(j_f = 0;j_f < m;j_f++)
r += (fil[j_f] + sf*scd[j_f] + pf*(phd[j_f] + sf*spd[j_f])) *
- src[j_s];
+ src[j_f];
dst[i] = r;
frac += increment;