diff options
author | Chris Robinson <[email protected]> | 2018-03-22 07:05:40 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2018-03-22 07:05:40 -0700 |
commit | 7a23330ffe34c0d04f882fdb45f68733ba49659d (patch) | |
tree | 54da49d0382b96ad9693a5d4051210e4210120fb /Alc/mixer | |
parent | 6ea3b5445fc574c8c18ae88d6f853dfb8c14ef1e (diff) |
Move the filter implementation to a separate directory
Diffstat (limited to 'Alc/mixer')
-rw-r--r-- | Alc/mixer/mixer_c.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/Alc/mixer/mixer_c.c b/Alc/mixer/mixer_c.c index 5f913101..e40c2cad 100644 --- a/Alc/mixer/mixer_c.c +++ b/Alc/mixer/mixer_c.c @@ -93,45 +93,6 @@ const ALfloat *Resample_bsinc_C(const InterpState *state, const ALfloat *restric } -void ALfilterState_processC(ALfilterState *filter, ALfloat *restrict dst, const ALfloat *restrict src, ALsizei numsamples) -{ - ALsizei i; - if(LIKELY(numsamples > 1)) - { - ALfloat x0 = filter->x[0]; - ALfloat x1 = filter->x[1]; - ALfloat y0 = filter->y[0]; - ALfloat y1 = filter->y[1]; - - for(i = 0;i < numsamples;i++) - { - dst[i] = filter->b0* src[i] + - filter->b1*x0 + filter->b2*x1 - - filter->a1*y0 - filter->a2*y1; - y1 = y0; y0 = dst[i]; - x1 = x0; x0 = src[i]; - } - - filter->x[0] = x0; - filter->x[1] = x1; - filter->y[0] = y0; - filter->y[1] = y1; - } - else if(numsamples == 1) - { - dst[0] = filter->b0 * src[0] + - filter->b1 * filter->x[0] + - filter->b2 * filter->x[1] - - filter->a1 * filter->y[0] - - filter->a2 * filter->y[1]; - filter->x[1] = filter->x[0]; - filter->x[0] = src[0]; - filter->y[1] = filter->y[0]; - filter->y[0] = dst[0]; - } -} - - static inline void ApplyCoeffs(ALsizei Offset, ALfloat (*restrict Values)[2], const ALsizei IrSize, const ALfloat (*restrict Coeffs)[2], |