aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer_c.c
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/mixer_c.c')
-rw-r--r--Alc/mixer_c.c14
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))