diff options
author | Chris Robinson <[email protected]> | 2016-07-26 00:03:44 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2016-07-26 00:03:44 -0700 |
commit | 11b38e11907ea383544bcf902f9ea891f4a3a5a4 (patch) | |
tree | 116551f3cbf55dba40ae6c948eec420fa806a09c /OpenAL32/Include/alFilter.h | |
parent | 0a693d039a376c116dc5facf2da5de5d2ef580ea (diff) |
Rename input_gain to b0
Diffstat (limited to 'OpenAL32/Include/alFilter.h')
-rw-r--r-- | OpenAL32/Include/alFilter.h | 5 |
1 files changed, 2 insertions, 3 deletions
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] - |