aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-05-21 14:59:21 -0700
committerChris Robinson <[email protected]>2014-05-21 14:59:21 -0700
commitdd2e6b7902ebe40865a9700b492697b70926198d (patch)
tree059a656ad7c488a910599a2ce6fee8b938c3cc62
parente650db98f7ff3ab6136f24c4a1680ea61d3fb037 (diff)
Properly process all samples with a bandpass filter
-rw-r--r--Alc/mixer.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c
index b12ecefb..0c8bdef3 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -107,8 +107,8 @@ static const ALfloat *DoFilters(ALfilterState *lpfilter, ALfilterState *hpfilter
ALfloat temp[64];
ALuint todo = minu(64, numsamples-i);
- ALfilterState_process(lpfilter, temp, src, todo);
- ALfilterState_process(hpfilter, dst, temp, todo);
+ ALfilterState_process(lpfilter, temp, src+i, todo);
+ ALfilterState_process(hpfilter, dst+i, temp, todo);
i += todo;
}
return dst;