From 4883091f5de278b7469790efa466df5d93d465b0 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Tue, 20 Aug 2019 01:24:02 -0700 Subject: Rename the Mix function input for clarity --- alc/mixer/mixer_neon.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'alc/mixer/mixer_neon.cpp') diff --git a/alc/mixer/mixer_neon.cpp b/alc/mixer/mixer_neon.cpp index 829d4ea1..b80f8cf8 100644 --- a/alc/mixer/mixer_neon.cpp +++ b/alc/mixer/mixer_neon.cpp @@ -189,8 +189,8 @@ void MixDirectHrtf_(FloatBufferLine &LeftOut, FloatBufferLine &RightOut template<> -void Mix_(const ALfloat *data, const al::span OutBuffer, - ALfloat *CurrentGains, const ALfloat *TargetGains, const ALsizei Counter, const ALsizei OutPos, +void Mix_(const float *InSamples, const al::span OutBuffer, + float *CurrentGains, const float *TargetGains, const ALsizei Counter, const ALsizei OutPos, const ALsizei BufferSize) { ASSUME(BufferSize > 0); @@ -223,7 +223,7 @@ void Mix_(const ALfloat *data, const al::span OutBuffe ALsizei todo{minsize >> 2}; do { - const float32x4_t val4 = vld1q_f32(&data[pos]); + const float32x4_t val4 = vld1q_f32(&InSamples[pos]); float32x4_t dry4 = vld1q_f32(&dst[pos]); dry4 = vmlaq_f32(dry4, val4, vmlaq_f32(gain4, step4, step_count4)); step_count4 = vaddq_f32(step_count4, four4); @@ -239,7 +239,7 @@ void Mix_(const ALfloat *data, const al::span OutBuffe /* Mix with applying left over gain steps that aren't aligned multiples of 4. */ for(;pos < minsize;pos++) { - dst[pos] += data[pos]*(gain + step*step_count); + dst[pos] += InSamples[pos]*(gain + step*step_count); step_count += 1.0f; } if(pos == Counter) @@ -251,7 +251,7 @@ void Mix_(const ALfloat *data, const al::span OutBuffe /* Mix until pos is aligned with 4 or the mix is done. */ minsize = mini(BufferSize, (pos+3)&~3); for(;pos < minsize;pos++) - dst[pos] += data[pos]*gain; + dst[pos] += InSamples[pos]*gain; } ++CurrentGains; ++TargetGains; @@ -263,7 +263,7 @@ void Mix_(const ALfloat *data, const al::span OutBuffe ALsizei todo{(BufferSize-pos) >> 2}; const float32x4_t gain4 = vdupq_n_f32(gain); do { - const float32x4_t val4 = vld1q_f32(&data[pos]); + const float32x4_t val4 = vld1q_f32(&InSamples[pos]); float32x4_t dry4 = vld1q_f32(&dst[pos]); dry4 = vmlaq_f32(dry4, val4, gain4); vst1q_f32(&dst[pos], dry4); @@ -271,7 +271,7 @@ void Mix_(const ALfloat *data, const al::span OutBuffe } while(--todo); } for(;pos < BufferSize;pos++) - dst[pos] += data[pos]*gain; + dst[pos] += InSamples[pos]*gain; } } -- cgit v1.2.3