aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer_c.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2016-07-26 00:03:44 -0700
committerChris Robinson <[email protected]>2016-07-26 00:03:44 -0700
commit11b38e11907ea383544bcf902f9ea891f4a3a5a4 (patch)
tree116551f3cbf55dba40ae6c948eec420fa806a09c /Alc/mixer_c.c
parent0a693d039a376c116dc5facf2da5de5d2ef580ea (diff)
Rename input_gain to b0
Diffstat (limited to 'Alc/mixer_c.c')
-rw-r--r--Alc/mixer_c.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/Alc/mixer_c.c b/Alc/mixer_c.c
index f741e28f..7dca7a61 100644
--- a/Alc/mixer_c.c
+++ b/Alc/mixer_c.c
@@ -98,18 +98,18 @@ void ALfilterState_processC(ALfilterState *filter, ALfloat *restrict dst, const
ALuint i;
if(numsamples > 1)
{
- dst[0] = filter->input_gain * src[0] +
+ 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];
- dst[1] = filter->input_gain * src[1] +
+ dst[1] = filter->b0 * src[1] +
filter->b1 * src[0] +
filter->b2 * filter->x[0] -
filter->a1 * dst[0] -
filter->a2 * filter->y[0];
for(i = 2;i < numsamples;i++)
- dst[i] = filter->input_gain * src[i] +
+ dst[i] = filter->b0 * src[i] +
filter->b1 * src[i-1] +
filter->b2 * src[i-2] -
filter->a1 * dst[i-1] -
@@ -121,7 +121,7 @@ void ALfilterState_processC(ALfilterState *filter, ALfloat *restrict dst, const
}
else if(numsamples == 1)
{
- dst[0] = filter->input_gain * src[0] +
+ dst[0] = filter->b0 * src[0] +
filter->b1 * filter->x[0] +
filter->b2 * filter->x[1] -
filter->a1 * filter->y[0] -