diff options
author | Chris Robinson <[email protected]> | 2014-05-18 10:35:11 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2014-05-18 10:35:11 -0700 |
commit | 9317ec59b99af1b598de1c302470113a77da966d (patch) | |
tree | 0d88df602051872f4741e68457f340eecfbb28f4 /Alc/mixer_c.c | |
parent | c9083d04fabb2cfc0622a8ec36f892355a025df5 (diff) |
Don't pass the SendParams to the wet-path mixer
Diffstat (limited to 'Alc/mixer_c.c')
-rw-r--r-- | Alc/mixer_c.c | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/Alc/mixer_c.c b/Alc/mixer_c.c index 700b326b..4cc76a0f 100644 --- a/Alc/mixer_c.c +++ b/Alc/mixer_c.c @@ -121,17 +121,15 @@ void MixDirect_C(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *data, } -void MixSend_C(SendParams *params, const ALfloat *restrict data, - ALuint OutPos, ALuint BufferSize) +void MixSend_C(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *data, + MixGainMono *Gain, ALuint Counter, ALuint OutPos, ALuint BufferSize) { - ALfloat (*restrict OutBuffer)[BUFFERSIZE] = params->OutBuffer; - ALuint Counter = maxu(params->Counter, OutPos) - OutPos; ALfloat WetSend, Step; { ALuint pos = 0; - WetSend = params->Gain.Current; - Step = params->Gain.Step; + WetSend = Gain->Current; + Step = Gain->Step; if(Step != 1.0f && Counter > 0) { for(;pos < BufferSize && pos < Counter;pos++) @@ -140,8 +138,8 @@ void MixSend_C(SendParams *params, const ALfloat *restrict data, WetSend *= Step; } if(pos == Counter) - WetSend = params->Gain.Target; - params->Gain.Current = WetSend; + WetSend = Gain->Target; + Gain->Current = WetSend; } if(!(WetSend > GAIN_SILENCE_THRESHOLD)) |