aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixvoice.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2018-03-23 14:52:59 -0700
committerChris Robinson <[email protected]>2018-03-23 14:52:59 -0700
commit6990478369e76a55aa27bebceb45db081fe8144e (patch)
tree0283f2b57eaea6d96b68dd0faad781c21c061145 /Alc/mixvoice.c
parente37634e908c7563e6281997d50800a2f9633d8d2 (diff)
Rename ALfilterState/Type to BiquadState/Type
Diffstat (limited to 'Alc/mixvoice.c')
-rw-r--r--Alc/mixvoice.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/Alc/mixvoice.c b/Alc/mixvoice.c
index 0e039115..a9d12821 100644
--- a/Alc/mixvoice.c
+++ b/Alc/mixvoice.c
@@ -263,7 +263,7 @@ static void LoadSamples(ALfloat *restrict dst, const ALvoid *restrict src, ALint
}
-static const ALfloat *DoFilters(ALfilterState *lpfilter, ALfilterState *hpfilter,
+static const ALfloat *DoFilters(BiquadState *lpfilter, BiquadState *hpfilter,
ALfloat *restrict dst, const ALfloat *restrict src,
ALsizei numsamples, enum ActiveFilters type)
{
@@ -271,17 +271,17 @@ static const ALfloat *DoFilters(ALfilterState *lpfilter, ALfilterState *hpfilter
switch(type)
{
case AF_None:
- ALfilterState_processPassthru(lpfilter, src, numsamples);
- ALfilterState_processPassthru(hpfilter, src, numsamples);
+ BiquadState_processPassthru(lpfilter, src, numsamples);
+ BiquadState_processPassthru(hpfilter, src, numsamples);
break;
case AF_LowPass:
- ALfilterState_process(lpfilter, dst, src, numsamples);
- ALfilterState_processPassthru(hpfilter, dst, numsamples);
+ BiquadState_process(lpfilter, dst, src, numsamples);
+ BiquadState_processPassthru(hpfilter, dst, numsamples);
return dst;
case AF_HighPass:
- ALfilterState_processPassthru(lpfilter, src, numsamples);
- ALfilterState_process(hpfilter, dst, src, numsamples);
+ BiquadState_processPassthru(lpfilter, src, numsamples);
+ BiquadState_process(hpfilter, dst, src, numsamples);
return dst;
case AF_BandPass:
@@ -290,8 +290,8 @@ static const ALfloat *DoFilters(ALfilterState *lpfilter, ALfilterState *hpfilter
ALfloat temp[256];
ALsizei todo = mini(256, numsamples-i);
- ALfilterState_process(lpfilter, temp, src+i, todo);
- ALfilterState_process(hpfilter, dst+i, temp, todo);
+ BiquadState_process(lpfilter, temp, src+i, todo);
+ BiquadState_process(hpfilter, dst+i, temp, todo);
i += todo;
}
return dst;