aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/mixer_neon.c
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-05-18 10:35:11 -0700
committerChris Robinson <[email protected]>2014-05-18 10:35:11 -0700
commit9317ec59b99af1b598de1c302470113a77da966d (patch)
tree0d88df602051872f4741e68457f340eecfbb28f4 /Alc/mixer_neon.c
parentc9083d04fabb2cfc0622a8ec36f892355a025df5 (diff)
Don't pass the SendParams to the wet-path mixer
Diffstat (limited to 'Alc/mixer_neon.c')
-rw-r--r--Alc/mixer_neon.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/Alc/mixer_neon.c b/Alc/mixer_neon.c
index 1fc56e53..6a0421a5 100644
--- a/Alc/mixer_neon.c
+++ b/Alc/mixer_neon.c
@@ -118,18 +118,16 @@ void MixDirect_Neon(ALfloat (*restrict OutBuffer)[BUFFERSIZE], const ALfloat *da
}
-void MixSend_Neon(SendParams *params, const ALfloat *restrict data,
- ALuint OutPos, ALuint BufferSize)
+void MixSend_Neon(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 WetGain, Step;
float32x4_t gain;
{
ALuint pos = 0;
- WetGain = params->Gain.Current;
- Step = params->Gain.Step;
+ WetGain = Gain->Current;
+ Step = Gain->Step;
if(Step != 1.0f && Counter > 0)
{
for(;pos < BufferSize && pos < Counter;pos++)
@@ -138,8 +136,8 @@ void MixSend_Neon(SendParams *params, const ALfloat *restrict data,
WetGain *= Step;
}
if(pos == Counter)
- WetGain = params->Gain.Target;
- params->Gain.Current = WetGain;
+ WetGain = Gain->Target;
+ Gain->Current = WetGain;
for(;pos < BufferSize && (pos&3) != 0;pos++)
OutBuffer[0][OutPos+pos] += data[pos]*WetGain;
}