diff options
author | Chris Robinson <[email protected]> | 2016-09-12 11:48:15 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-09-12 11:48:15 -0700 |
commit | 53d8a496736c61b9cde5d982737bed98b2f72004 (patch) | |
tree | df7338078af31cddfc6151b855979be7b19979b0 /OpenAL32 | |
parent | 46b3e1d08ca10e809eb2e20b6371812958b97e1f (diff) |
Call ALfilterState_processC directly
It's the only implementation currently, so there's no point to having it stored
as a function pointer in the filter struct. Even if there were SIMD versions,
it'd be a global selection, not per-instance.
Diffstat (limited to 'OpenAL32')
-rw-r--r-- | OpenAL32/Include/alFilter.h | 5 | ||||
-rw-r--r-- | OpenAL32/alFilter.c | 2 |
2 files changed, 2 insertions, 5 deletions
diff --git a/OpenAL32/Include/alFilter.h b/OpenAL32/Include/alFilter.h index a74cd211..1f7095bc 100644 --- a/OpenAL32/Include/alFilter.h +++ b/OpenAL32/Include/alFilter.h @@ -44,10 +44,9 @@ typedef struct ALfilterState { ALfloat y[2]; /* History of two last output samples */ ALfloat a1, a2; /* Transfer function coefficients "a" (a0 is pre-applied) */ ALfloat b0, b1, b2; /* Transfer function coefficients "b" */ - - void (*process)(struct ALfilterState *self, ALfloat *restrict dst, const ALfloat *restrict src, ALuint numsamples); } ALfilterState; -#define ALfilterState_process(a, ...) ((a)->process((a), __VA_ARGS__)) +/* Currently only a C-based filter process method is implemented. */ +#define ALfilterState_process ALfilterState_processC /* Calculates the rcpQ (i.e. 1/Q) coefficient for shelving filters, using the * reference gain and shelf slope parameter. diff --git a/OpenAL32/alFilter.c b/OpenAL32/alFilter.c index fa3496c9..c675d344 100644 --- a/OpenAL32/alFilter.c +++ b/OpenAL32/alFilter.c @@ -431,8 +431,6 @@ void ALfilterState_setParams(ALfilterState *filter, ALfilterType type, ALfloat g filter->b0 = b[0] / a[0]; filter->b1 = b[1] / a[0]; filter->b2 = b[2] / a[0]; - - filter->process = ALfilterState_processC; } |