aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixvoice.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-12-04 22:31:08 -0800
committerChris Robinson <[email protected]>2018-12-04 22:31:08 -0800
commit164a86a381e4f51383c6afbfdf63dadd3ecb3785 (patch)
tree98287b6d44082e4b905eddeb2e70ebc8cf8bfd0a /Alc/mixvoice.cpp
parent36a8b615c883ccc90705b97402e2e2046058720a (diff)
Use class methods for the biquad filter
Diffstat (limited to 'Alc/mixvoice.cpp')
-rw-r--r--Alc/mixvoice.cpp16
1 files changed, 8 insertions, 8 deletions
diff --git a/Alc/mixvoice.cpp b/Alc/mixvoice.cpp
index 04bb1130..91c48daf 100644
--- a/Alc/mixvoice.cpp
+++ b/Alc/mixvoice.cpp
@@ -250,17 +250,17 @@ const ALfloat *DoFilters(BiquadFilter *lpfilter, BiquadFilter *hpfilter,
switch(type)
{
case AF_None:
- BiquadFilter_passthru(lpfilter, numsamples);
- BiquadFilter_passthru(hpfilter, numsamples);
+ lpfilter->passthru(numsamples);
+ hpfilter->passthru(numsamples);
break;
case AF_LowPass:
- BiquadFilter_process(lpfilter, dst, src, numsamples);
- BiquadFilter_passthru(hpfilter, numsamples);
+ lpfilter->process(dst, src, numsamples);
+ hpfilter->passthru(numsamples);
return dst;
case AF_HighPass:
- BiquadFilter_passthru(lpfilter, numsamples);
- BiquadFilter_process(hpfilter, dst, src, numsamples);
+ lpfilter->passthru(numsamples);
+ hpfilter->process(dst, src, numsamples);
return dst;
case AF_BandPass:
@@ -269,8 +269,8 @@ const ALfloat *DoFilters(BiquadFilter *lpfilter, BiquadFilter *hpfilter,
ALfloat temp[256];
ALsizei todo = mini(256, numsamples-i);
- BiquadFilter_process(lpfilter, temp, src+i, todo);
- BiquadFilter_process(hpfilter, dst+i, temp, todo);
+ lpfilter->process(temp, src+i, todo);
+ hpfilter->process(dst+i, temp, todo);
i += todo;
}
return dst;