2012-08-15 01:01:55 -07:00
|
|
|
#include "config.h"
|
|
|
|
|
|
|
|
#include <arm_neon.h>
|
|
|
|
|
|
|
|
#include "AL/al.h"
|
|
|
|
#include "AL/alc.h"
|
|
|
|
#include "alMain.h"
|
|
|
|
#include "alu.h"
|
2014-02-23 21:28:34 -08:00
|
|
|
#include "hrtf.h"
|
2017-02-12 21:03:30 -08:00
|
|
|
#include "mixer_defs.h"
|
|
|
|
|
|
|
|
|
2017-08-16 18:09:53 -07:00
|
|
|
const ALfloat *Resample_lerp_Neon(const InterpState* UNUSED(state),
|
2017-04-08 14:29:08 -07:00
|
|
|
const ALfloat *restrict src, ALsizei frac, ALint increment,
|
2017-02-13 11:29:32 -08:00
|
|
|
ALfloat *restrict dst, ALsizei numsamples)
|
2017-02-12 21:03:30 -08:00
|
|
|
{
|
|
|
|
const int32x4_t increment4 = vdupq_n_s32(increment*4);
|
|
|
|
const float32x4_t fracOne4 = vdupq_n_f32(1.0f/FRACTIONONE);
|
2017-04-08 14:29:08 -07:00
|
|
|
const int32x4_t fracMask4 = vdupq_n_s32(FRACTIONMASK);
|
2017-02-12 21:03:30 -08:00
|
|
|
alignas(16) ALint pos_[4];
|
2017-04-08 14:29:08 -07:00
|
|
|
alignas(16) ALsizei frac_[4];
|
2017-02-12 21:03:30 -08:00
|
|
|
int32x4_t pos4;
|
2017-04-08 14:29:08 -07:00
|
|
|
int32x4_t frac4;
|
2017-02-12 21:03:30 -08:00
|
|
|
ALsizei i;
|
|
|
|
|
|
|
|
InitiatePositionArrays(frac, increment, frac_, pos_, 4);
|
|
|
|
|
2017-04-08 14:29:08 -07:00
|
|
|
frac4 = vld1q_s32(frac_);
|
2017-02-12 21:03:30 -08:00
|
|
|
pos4 = vld1q_s32(pos_);
|
|
|
|
|
|
|
|
for(i = 0;numsamples-i > 3;i += 4)
|
|
|
|
{
|
|
|
|
const float32x4_t val1 = (float32x4_t){src[pos_[0]], src[pos_[1]], src[pos_[2]], src[pos_[3]]};
|
|
|
|
const float32x4_t val2 = (float32x4_t){src[pos_[0]+1], src[pos_[1]+1], src[pos_[2]+1], src[pos_[3]+1]};
|
|
|
|
|
|
|
|
/* val1 + (val2-val1)*mu */
|
|
|
|
const float32x4_t r0 = vsubq_f32(val2, val1);
|
2017-04-08 14:29:08 -07:00
|
|
|
const float32x4_t mu = vmulq_f32(vcvtq_f32_s32(frac4), fracOne4);
|
2017-02-12 21:03:30 -08:00
|
|
|
const float32x4_t out = vmlaq_f32(val1, mu, r0);
|
|
|
|
|
|
|
|
vst1q_f32(&dst[i], out);
|
|
|
|
|
2017-04-08 14:29:08 -07:00
|
|
|
frac4 = vaddq_s32(frac4, increment4);
|
|
|
|
pos4 = vaddq_s32(pos4, vshrq_n_s32(frac4, FRACTIONBITS));
|
|
|
|
frac4 = vandq_s32(frac4, fracMask4);
|
2017-02-12 21:03:30 -08:00
|
|
|
|
|
|
|
vst1q_s32(pos_, pos4);
|
|
|
|
}
|
|
|
|
|
|
|
|
if(i < numsamples)
|
|
|
|
{
|
|
|
|
/* NOTE: These four elements represent the position *after* the last
|
|
|
|
* four samples, so the lowest element is the next position to
|
|
|
|
* resample.
|
|
|
|
*/
|
|
|
|
ALint pos = pos_[0];
|
2017-04-08 14:29:08 -07:00
|
|
|
frac = vgetq_lane_s32(frac4, 0);
|
2017-02-12 21:03:30 -08:00
|
|
|
do {
|
|
|
|
dst[i] = lerp(src[pos], src[pos+1], frac * (1.0f/FRACTIONONE));
|
|
|
|
|
|
|
|
frac += increment;
|
|
|
|
pos += frac>>FRACTIONBITS;
|
|
|
|
frac &= FRACTIONMASK;
|
|
|
|
} while(++i < numsamples);
|
|
|
|
}
|
|
|
|
return dst;
|
|
|
|
}
|
|
|
|
|
2017-08-16 18:09:53 -07:00
|
|
|
const ALfloat *Resample_fir4_Neon(const InterpState *state,
|
2017-04-08 14:29:08 -07:00
|
|
|
const ALfloat *restrict src, ALsizei frac, ALint increment,
|
2017-02-13 11:29:32 -08:00
|
|
|
ALfloat *restrict dst, ALsizei numsamples)
|
2017-02-12 21:03:30 -08:00
|
|
|
{
|
2017-08-16 18:09:53 -07:00
|
|
|
const ALfloat (*restrict filter)[4] = ASSUME_ALIGNED(state->sinc4.filter, 16);
|
2017-02-12 21:03:30 -08:00
|
|
|
const int32x4_t increment4 = vdupq_n_s32(increment*4);
|
2017-04-08 14:29:08 -07:00
|
|
|
const int32x4_t fracMask4 = vdupq_n_s32(FRACTIONMASK);
|
2017-02-12 21:03:30 -08:00
|
|
|
alignas(16) ALint pos_[4];
|
2017-04-08 14:29:08 -07:00
|
|
|
alignas(16) ALsizei frac_[4];
|
2017-02-12 21:03:30 -08:00
|
|
|
int32x4_t pos4;
|
2017-04-08 14:29:08 -07:00
|
|
|
int32x4_t frac4;
|
2017-02-12 21:03:30 -08:00
|
|
|
ALsizei i;
|
|
|
|
|
|
|
|
InitiatePositionArrays(frac, increment, frac_, pos_, 4);
|
|
|
|
|
2017-04-08 14:29:08 -07:00
|
|
|
frac4 = vld1q_s32(frac_);
|
2017-02-12 21:03:30 -08:00
|
|
|
pos4 = vld1q_s32(pos_);
|
|
|
|
|
|
|
|
--src;
|
|
|
|
for(i = 0;numsamples-i > 3;i += 4)
|
|
|
|
{
|
|
|
|
const float32x4_t val0 = vld1q_f32(&src[pos_[0]]);
|
|
|
|
const float32x4_t val1 = vld1q_f32(&src[pos_[1]]);
|
|
|
|
const float32x4_t val2 = vld1q_f32(&src[pos_[2]]);
|
|
|
|
const float32x4_t val3 = vld1q_f32(&src[pos_[3]]);
|
2017-08-16 18:09:53 -07:00
|
|
|
float32x4_t k0 = vld1q_f32(filter[frac_[0]]);
|
|
|
|
float32x4_t k1 = vld1q_f32(filter[frac_[1]]);
|
|
|
|
float32x4_t k2 = vld1q_f32(filter[frac_[2]]);
|
|
|
|
float32x4_t k3 = vld1q_f32(filter[frac_[3]]);
|
2017-02-12 21:03:30 -08:00
|
|
|
float32x4_t out;
|
|
|
|
|
|
|
|
k0 = vmulq_f32(k0, val0);
|
|
|
|
k1 = vmulq_f32(k1, val1);
|
|
|
|
k2 = vmulq_f32(k2, val2);
|
|
|
|
k3 = vmulq_f32(k3, val3);
|
|
|
|
k0 = vcombine_f32(vpadd_f32(vget_low_f32(k0), vget_high_f32(k0)),
|
|
|
|
vpadd_f32(vget_low_f32(k1), vget_high_f32(k1)));
|
|
|
|
k2 = vcombine_f32(vpadd_f32(vget_low_f32(k2), vget_high_f32(k2)),
|
|
|
|
vpadd_f32(vget_low_f32(k3), vget_high_f32(k3)));
|
|
|
|
out = vcombine_f32(vpadd_f32(vget_low_f32(k0), vget_high_f32(k0)),
|
|
|
|
vpadd_f32(vget_low_f32(k2), vget_high_f32(k2)));
|
|
|
|
|
|
|
|
vst1q_f32(&dst[i], out);
|
|
|
|
|
2017-04-08 14:29:08 -07:00
|
|
|
frac4 = vaddq_s32(frac4, increment4);
|
|
|
|
pos4 = vaddq_s32(pos4, vshrq_n_s32(frac4, FRACTIONBITS));
|
|
|
|
frac4 = vandq_s32(frac4, fracMask4);
|
2017-02-12 21:03:30 -08:00
|
|
|
|
|
|
|
vst1q_s32(pos_, pos4);
|
2017-04-08 14:29:08 -07:00
|
|
|
vst1q_s32(frac_, frac4);
|
2017-02-12 21:03:30 -08:00
|
|
|
}
|
|
|
|
|
|
|
|
if(i < numsamples)
|
|
|
|
{
|
|
|
|
/* NOTE: These four elements represent the position *after* the last
|
|
|
|
* four samples, so the lowest element is the next position to
|
|
|
|
* resample.
|
|
|
|
*/
|
|
|
|
ALint pos = pos_[0];
|
|
|
|
frac = frac_[0];
|
|
|
|
do {
|
2017-08-16 18:09:53 -07:00
|
|
|
dst[i] = resample_fir4(filter, src[pos], src[pos+1], src[pos+2], src[pos+3], frac);
|
2017-02-12 21:03:30 -08:00
|
|
|
|
|
|
|
frac += increment;
|
|
|
|
pos += frac>>FRACTIONBITS;
|
|
|
|
frac &= FRACTIONMASK;
|
|
|
|
} while(++i < numsamples);
|
|
|
|
}
|
|
|
|
return dst;
|
|
|
|
}
|
|
|
|
|
2017-08-16 18:09:53 -07:00
|
|
|
const ALfloat *Resample_bsinc_Neon(const InterpState *state,
|
2017-04-08 14:29:08 -07:00
|
|
|
const ALfloat *restrict src, ALsizei frac, ALint increment,
|
2017-02-13 11:29:32 -08:00
|
|
|
ALfloat *restrict dst, ALsizei dstlen)
|
2017-02-12 21:03:30 -08:00
|
|
|
{
|
2017-08-16 02:45:25 -07:00
|
|
|
const ALfloat *filter = state->bsinc.filter;
|
2017-02-13 11:29:32 -08:00
|
|
|
const float32x4_t sf4 = vdupq_n_f32(state->bsinc.sf);
|
|
|
|
const ALsizei m = state->bsinc.m;
|
2017-02-12 21:03:30 -08:00
|
|
|
const ALfloat *fil, *scd, *phd, *spd;
|
|
|
|
ALsizei pi, i, j;
|
|
|
|
float32x4_t r4;
|
|
|
|
ALfloat pf;
|
|
|
|
|
2017-02-13 11:29:32 -08:00
|
|
|
src += state->bsinc.l;
|
2017-02-12 21:03:30 -08:00
|
|
|
for(i = 0;i < dstlen;i++)
|
|
|
|
{
|
|
|
|
// Calculate the phase index and factor.
|
|
|
|
#define FRAC_PHASE_BITDIFF (FRACTIONBITS-BSINC_PHASE_BITS)
|
|
|
|
pi = frac >> FRAC_PHASE_BITDIFF;
|
|
|
|
pf = (frac & ((1<<FRAC_PHASE_BITDIFF)-1)) * (1.0f/(1<<FRAC_PHASE_BITDIFF));
|
|
|
|
#undef FRAC_PHASE_BITDIFF
|
|
|
|
|
2017-08-16 02:45:25 -07:00
|
|
|
fil = ASSUME_ALIGNED(filter + m*pi*4, 16);
|
|
|
|
scd = ASSUME_ALIGNED(fil + m, 16);
|
|
|
|
phd = ASSUME_ALIGNED(scd + m, 16);
|
|
|
|
spd = ASSUME_ALIGNED(phd + m, 16);
|
2017-02-12 21:03:30 -08:00
|
|
|
|
|
|
|
// Apply the scale and phase interpolated filter.
|
|
|
|
r4 = vdupq_n_f32(0.0f);
|
|
|
|
{
|
|
|
|
const float32x4_t pf4 = vdupq_n_f32(pf);
|
|
|
|
for(j = 0;j < m;j+=4)
|
|
|
|
{
|
2017-02-13 07:36:49 -08:00
|
|
|
/* f = ((fil + sf*scd) + pf*(phd + sf*spd)) */
|
2017-02-12 21:35:08 -08:00
|
|
|
const float32x4_t f4 = vmlaq_f32(vmlaq_f32(vld1q_f32(&fil[j]),
|
|
|
|
sf4, vld1q_f32(&scd[j])),
|
2017-02-12 21:03:30 -08:00
|
|
|
pf4, vmlaq_f32(vld1q_f32(&phd[j]),
|
|
|
|
sf4, vld1q_f32(&spd[j])
|
|
|
|
)
|
|
|
|
);
|
2017-02-13 07:36:49 -08:00
|
|
|
/* r += f*src */
|
2017-02-12 21:03:30 -08:00
|
|
|
r4 = vmlaq_f32(r4, f4, vld1q_f32(&src[j]));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
r4 = vaddq_f32(r4, vcombine_f32(vrev64_f32(vget_high_f32(r4)),
|
|
|
|
vrev64_f32(vget_low_f32(r4))));
|
|
|
|
dst[i] = vget_lane_f32(vadd_f32(vget_low_f32(r4), vget_high_f32(r4)), 0);
|
|
|
|
|
|
|
|
frac += increment;
|
|
|
|
src += frac>>FRACTIONBITS;
|
|
|
|
frac &= FRACTIONMASK;
|
|
|
|
}
|
|
|
|
return dst;
|
|
|
|
}
|
2012-08-15 01:01:55 -07:00
|
|
|
|
|
|
|
|
2017-01-16 07:45:07 -08:00
|
|
|
static inline void ApplyCoeffs(ALsizei Offset, ALfloat (*restrict Values)[2],
|
|
|
|
const ALsizei IrSize,
|
2017-03-11 18:04:06 -08:00
|
|
|
const ALfloat (*restrict Coeffs)[2],
|
2013-05-28 22:27:07 -07:00
|
|
|
ALfloat left, ALfloat right)
|
2012-08-15 01:01:55 -07:00
|
|
|
{
|
2017-01-16 07:45:07 -08:00
|
|
|
ALsizei c;
|
2012-08-15 01:01:55 -07:00
|
|
|
float32x4_t leftright4;
|
|
|
|
{
|
|
|
|
float32x2_t leftright2 = vdup_n_f32(0.0);
|
|
|
|
leftright2 = vset_lane_f32(left, leftright2, 0);
|
|
|
|
leftright2 = vset_lane_f32(right, leftright2, 1);
|
|
|
|
leftright4 = vcombine_f32(leftright2, leftright2);
|
|
|
|
}
|
2017-02-13 07:36:49 -08:00
|
|
|
Values = ASSUME_ALIGNED(Values, 16);
|
|
|
|
Coeffs = ASSUME_ALIGNED(Coeffs, 16);
|
2012-09-11 01:59:42 -07:00
|
|
|
for(c = 0;c < IrSize;c += 2)
|
2012-08-15 01:01:55 -07:00
|
|
|
{
|
2017-01-16 07:45:07 -08:00
|
|
|
const ALsizei o0 = (Offset+c)&HRIR_MASK;
|
|
|
|
const ALsizei o1 = (o0+1)&HRIR_MASK;
|
2012-08-15 01:01:55 -07:00
|
|
|
float32x4_t vals = vcombine_f32(vld1_f32((float32_t*)&Values[o0][0]),
|
|
|
|
vld1_f32((float32_t*)&Values[o1][0]));
|
|
|
|
float32x4_t coefs = vld1q_f32((float32_t*)&Coeffs[c][0]);
|
|
|
|
|
|
|
|
vals = vmlaq_f32(vals, coefs, leftright4);
|
|
|
|
|
|
|
|
vst1_f32((float32_t*)&Values[o0][0], vget_low_f32(vals));
|
|
|
|
vst1_f32((float32_t*)&Values[o1][0], vget_high_f32(vals));
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2015-08-15 01:37:46 -07:00
|
|
|
#define MixHrtf MixHrtf_Neon
|
2017-05-03 03:29:21 -07:00
|
|
|
#define MixHrtfBlend MixHrtfBlend_Neon
|
2016-08-12 05:26:36 -07:00
|
|
|
#define MixDirectHrtf MixDirectHrtf_Neon
|
2012-08-15 01:01:55 -07:00
|
|
|
#include "mixer_inc.c"
|
2015-08-15 01:37:46 -07:00
|
|
|
#undef MixHrtf
|
2014-01-26 01:34:39 -08:00
|
|
|
|
|
|
|
|
2017-01-16 07:45:07 -08:00
|
|
|
void Mix_Neon(const ALfloat *data, ALsizei OutChans, ALfloat (*restrict OutBuffer)[BUFFERSIZE],
|
|
|
|
ALfloat *CurrentGains, const ALfloat *TargetGains, ALsizei Counter, ALsizei OutPos,
|
|
|
|
ALsizei BufferSize)
|
2014-01-26 01:34:39 -08:00
|
|
|
{
|
2016-10-05 20:33:45 -07:00
|
|
|
ALfloat gain, delta, step;
|
2014-06-13 13:34:19 -07:00
|
|
|
float32x4_t gain4;
|
2017-01-16 07:45:07 -08:00
|
|
|
ALsizei c;
|
2014-01-26 01:34:39 -08:00
|
|
|
|
2017-02-13 07:36:49 -08:00
|
|
|
data = ASSUME_ALIGNED(data, 16);
|
|
|
|
OutBuffer = ASSUME_ALIGNED(OutBuffer, 16);
|
|
|
|
|
2016-10-05 20:33:45 -07:00
|
|
|
delta = (Counter > 0) ? 1.0f/(ALfloat)Counter : 0.0f;
|
|
|
|
|
2014-06-13 13:34:19 -07:00
|
|
|
for(c = 0;c < OutChans;c++)
|
2014-01-26 01:34:39 -08:00
|
|
|
{
|
2017-01-16 07:45:07 -08:00
|
|
|
ALsizei pos = 0;
|
2016-10-05 20:33:45 -07:00
|
|
|
gain = CurrentGains[c];
|
|
|
|
step = (TargetGains[c] - gain) * delta;
|
|
|
|
if(fabsf(step) > FLT_EPSILON)
|
2014-03-23 06:57:00 -07:00
|
|
|
{
|
2017-01-16 07:45:07 -08:00
|
|
|
ALsizei minsize = mini(BufferSize, Counter);
|
2016-08-05 18:47:26 -07:00
|
|
|
/* Mix with applying gain steps in aligned multiples of 4. */
|
|
|
|
if(minsize-pos > 3)
|
|
|
|
{
|
|
|
|
float32x4_t step4;
|
|
|
|
gain4 = vsetq_lane_f32(gain, gain4, 0);
|
|
|
|
gain4 = vsetq_lane_f32(gain + step, gain4, 1);
|
|
|
|
gain4 = vsetq_lane_f32(gain + step + step, gain4, 2);
|
|
|
|
gain4 = vsetq_lane_f32(gain + step + step + step, gain4, 3);
|
|
|
|
step4 = vdupq_n_f32(step + step + step + step);
|
|
|
|
do {
|
|
|
|
const float32x4_t val4 = vld1q_f32(&data[pos]);
|
|
|
|
float32x4_t dry4 = vld1q_f32(&OutBuffer[c][OutPos+pos]);
|
|
|
|
dry4 = vmlaq_f32(dry4, val4, gain4);
|
|
|
|
gain4 = vaddq_f32(gain4, step4);
|
|
|
|
vst1q_f32(&OutBuffer[c][OutPos+pos], dry4);
|
|
|
|
pos += 4;
|
|
|
|
} while(minsize-pos > 3);
|
|
|
|
/* NOTE: gain4 now represents the next four gains after the
|
|
|
|
* last four mixed samples, so the lowest element represents
|
|
|
|
* the next gain to apply.
|
|
|
|
*/
|
|
|
|
gain = vgetq_lane_f32(gain4, 0);
|
|
|
|
}
|
|
|
|
/* Mix with applying left over gain steps that aren't aligned multiples of 4. */
|
2015-09-30 17:25:28 -07:00
|
|
|
for(;pos < minsize;pos++)
|
2014-03-23 06:57:00 -07:00
|
|
|
{
|
2014-06-13 13:34:19 -07:00
|
|
|
OutBuffer[c][OutPos+pos] += data[pos]*gain;
|
2014-11-25 02:08:48 -08:00
|
|
|
gain += step;
|
2014-03-23 06:57:00 -07:00
|
|
|
}
|
2014-05-04 00:13:19 -07:00
|
|
|
if(pos == Counter)
|
2016-10-05 20:33:45 -07:00
|
|
|
gain = TargetGains[c];
|
|
|
|
CurrentGains[c] = gain;
|
2015-09-30 17:25:28 -07:00
|
|
|
|
2014-05-03 17:24:46 -07:00
|
|
|
/* Mix until pos is aligned with 4 or the mix is done. */
|
2017-01-16 07:45:07 -08:00
|
|
|
minsize = mini(BufferSize, (pos+3)&~3);
|
2015-09-30 17:25:28 -07:00
|
|
|
for(;pos < minsize;pos++)
|
2014-06-13 13:34:19 -07:00
|
|
|
OutBuffer[c][OutPos+pos] += data[pos]*gain;
|
2014-03-23 06:57:00 -07:00
|
|
|
}
|
|
|
|
|
2014-10-31 16:55:19 -07:00
|
|
|
if(!(fabsf(gain) > GAIN_SILENCE_THRESHOLD))
|
2014-01-26 01:34:39 -08:00
|
|
|
continue;
|
2014-06-13 13:34:19 -07:00
|
|
|
gain4 = vdupq_n_f32(gain);
|
2014-03-23 06:57:00 -07:00
|
|
|
for(;BufferSize-pos > 3;pos += 4)
|
2014-01-26 01:34:39 -08:00
|
|
|
{
|
|
|
|
const float32x4_t val4 = vld1q_f32(&data[pos]);
|
|
|
|
float32x4_t dry4 = vld1q_f32(&OutBuffer[c][OutPos+pos]);
|
2015-09-30 13:34:09 -07:00
|
|
|
dry4 = vmlaq_f32(dry4, val4, gain4);
|
2014-01-26 01:34:39 -08:00
|
|
|
vst1q_f32(&OutBuffer[c][OutPos+pos], dry4);
|
|
|
|
}
|
|
|
|
for(;pos < BufferSize;pos++)
|
2014-06-13 13:34:19 -07:00
|
|
|
OutBuffer[c][OutPos+pos] += data[pos]*gain;
|
2014-03-23 16:11:21 -07:00
|
|
|
}
|
2014-01-26 01:34:39 -08:00
|
|
|
}
|
2016-06-01 23:39:13 -07:00
|
|
|
|
2017-01-16 07:45:07 -08:00
|
|
|
void MixRow_Neon(ALfloat *OutBuffer, const ALfloat *Gains, const ALfloat (*restrict data)[BUFFERSIZE], ALsizei InChans, ALsizei InPos, ALsizei BufferSize)
|
2016-06-01 23:39:13 -07:00
|
|
|
{
|
|
|
|
float32x4_t gain4;
|
2017-01-16 07:45:07 -08:00
|
|
|
ALsizei c;
|
2016-06-01 23:39:13 -07:00
|
|
|
|
2017-02-13 07:36:49 -08:00
|
|
|
data = ASSUME_ALIGNED(data, 16);
|
|
|
|
OutBuffer = ASSUME_ALIGNED(OutBuffer, 16);
|
|
|
|
|
2016-06-01 23:39:13 -07:00
|
|
|
for(c = 0;c < InChans;c++)
|
|
|
|
{
|
2017-01-16 07:45:07 -08:00
|
|
|
ALsizei pos = 0;
|
2016-09-02 00:29:46 -07:00
|
|
|
ALfloat gain = Gains[c];
|
2016-06-01 23:39:13 -07:00
|
|
|
if(!(fabsf(gain) > GAIN_SILENCE_THRESHOLD))
|
|
|
|
continue;
|
|
|
|
|
|
|
|
gain4 = vdupq_n_f32(gain);
|
|
|
|
for(;BufferSize-pos > 3;pos += 4)
|
|
|
|
{
|
2016-10-04 16:25:43 -07:00
|
|
|
const float32x4_t val4 = vld1q_f32(&data[c][InPos+pos]);
|
2016-06-01 23:39:13 -07:00
|
|
|
float32x4_t dry4 = vld1q_f32(&OutBuffer[pos]);
|
|
|
|
dry4 = vmlaq_f32(dry4, val4, gain4);
|
|
|
|
vst1q_f32(&OutBuffer[pos], dry4);
|
|
|
|
}
|
|
|
|
for(;pos < BufferSize;pos++)
|
2016-10-04 16:25:43 -07:00
|
|
|
OutBuffer[pos] += data[c][InPos+pos]*gain;
|
2016-06-01 23:39:13 -07:00
|
|
|
}
|
|
|
|
}
|