aboutsummaryrefslogtreecommitdiffstats
path: root/alc/mixer/mixer_neon.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-08-19 08:02:08 -0700
committerChris Robinson <[email protected]>2019-08-19 08:02:08 -0700
commit2d0568c0484fa5abc74b084c094a325adb0bc452 (patch)
treef89b04a772ef98625bdd8cb67ebcb4ef992e0819 /alc/mixer/mixer_neon.cpp
parenta9223ae601c45c6bdc3c3001ce7b5f30141046b1 (diff)
Allow using a variable channel stride for MixRowSamples
Diffstat (limited to 'alc/mixer/mixer_neon.cpp')
-rw-r--r--alc/mixer/mixer_neon.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/alc/mixer/mixer_neon.cpp b/alc/mixer/mixer_neon.cpp
index 40cbdb23..c6ea2c60 100644
--- a/alc/mixer/mixer_neon.cpp
+++ b/alc/mixer/mixer_neon.cpp
@@ -276,15 +276,16 @@ void Mix_<NEONTag>(const ALfloat *data, const al::span<FloatBufferLine> OutBuffe
}
template<>
-void MixRow_<NEONTag>(ALfloat *OutBuffer, const ALfloat *Gains,
- const al::span<const FloatBufferLine> InSamples, const ALsizei InPos, const ALsizei BufferSize)
+void MixRow_<NEONTag>(ALfloat *OutBuffer, const al::span<const ALfloat> Gains,
+ const ALfloat *InSamples, const ALsizei InStride, const ALsizei BufferSize)
{
ASSUME(BufferSize > 0);
- for(const FloatBufferLine &input : InSamples)
+ for(const ALfloat gain : Gains)
{
- const ALfloat *RESTRICT src{al::assume_aligned<16>(input.data()+InPos)};
- const ALfloat gain{*(Gains++)};
+ const ALfloat *RESTRICT src{InSamples};
+ InSamples += InStride;
+
if(!(std::fabs(gain) > GAIN_SILENCE_THRESHOLD))
continue;