From 11b38e11907ea383544bcf902f9ea891f4a3a5a4 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 26 Jul 2016 00:03:44 -0700 Subject: Rename input_gain to b0 --- OpenAL32/Include/alFilter.h | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'OpenAL32/Include/alFilter.h') diff --git a/OpenAL32/Include/alFilter.h b/OpenAL32/Include/alFilter.h index 855bb534..8012e398 100644 --- a/OpenAL32/Include/alFilter.h +++ b/OpenAL32/Include/alFilter.h @@ -43,8 +43,7 @@ typedef struct ALfilterState { ALfloat x[2]; /* History of two last input samples */ ALfloat y[2]; /* History of two last output samples */ ALfloat a1, a2; /* Transfer function coefficients "a" (a0 is pre-applied) */ - ALfloat b1, b2; /* Transfer function coefficients "b" (b0 is input_gain) */ - ALfloat input_gain; + ALfloat b0, b1, b2; /* Transfer function coefficients "b" */ void (*process)(struct ALfilterState *self, ALfloat *restrict dst, const ALfloat *src, ALuint numsamples); } ALfilterState; @@ -83,7 +82,7 @@ inline ALfloat ALfilterState_processSingle(ALfilterState *filter, ALfloat sample { ALfloat outsmp; - outsmp = filter->input_gain * sample + + outsmp = filter->b0 * sample + filter->b1 * filter->x[0] + filter->b2 * filter->x[1] - filter->a1 * filter->y[0] - -- cgit v1.2.3