aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2013-05-27 19:14:02 -0700
committerChris Robinson <[email protected]>2013-05-27 19:14:02 -0700
commitfeeec3433377d46f71771c3930e5e00bf9834feb (patch)
tree7f35880242639f791f65753d341e923b73e877c6 /Alc/mixer.c
parentbcf4842eb3f226faa83e2343e2492dda31386c20 (diff)
Use ALfilterState for the source direct and send filters
Diffstat (limited to 'Alc/mixer.c')
-rw-r--r--Alc/mixer.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/Alc/mixer.c b/Alc/mixer.c
index 58e3a535..b9dcc1c1 100644
--- a/Alc/mixer.c
+++ b/Alc/mixer.c
@@ -84,13 +84,13 @@ static void SilenceData(ALfloat *dst, ALuint samples)
}
-static void Filter2P(FILTER *filter, ALfloat *restrict dst, const ALfloat *restrict src,
+static void DoFilter(ALfilterState *filter, ALfloat *restrict dst, const ALfloat *restrict src,
ALuint numsamples)
{
ALuint i;
for(i = 0;i < numsamples;i++)
- dst[i] = lpFilter2P(filter, src[i]);
- dst[i] = lpFilter2PC(filter, src[i]);
+ dst[i] = ALfilterState_processSingle(filter, src[i]);
+ dst[i] = ALfilterState_processSingleC(filter, src[i]);
}
@@ -328,7 +328,7 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo)
{
DirectParams *directparms = &Source->Params.Direct;
- Filter2P(&directparms->Filter[chan], SrcData, ResampledData,
+ DoFilter(&directparms->Filter[chan], SrcData, ResampledData,
DstBufferSize);
Source->Params.DryMix(directparms, SrcData, chan, OutPos,
SamplesToDo, DstBufferSize);
@@ -340,7 +340,7 @@ ALvoid MixSource(ALsource *Source, ALCdevice *Device, ALuint SamplesToDo)
if(!sendparms->Slot)
continue;
- Filter2P(&sendparms->Filter[chan], SrcData, ResampledData,
+ DoFilter(&sendparms->Filter[chan], SrcData, ResampledData,
DstBufferSize);
Source->Params.WetMix(sendparms, SrcData, OutPos,
SamplesToDo, DstBufferSize);