aboutsummaryrefslogtreecommitdiffstats
path: root/alc/mixer/mixer_sse.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'alc/mixer/mixer_sse.cpp')
-rw-r--r--alc/mixer/mixer_sse.cpp11
1 files changed, 6 insertions, 5 deletions
diff --git a/alc/mixer/mixer_sse.cpp b/alc/mixer/mixer_sse.cpp
index 6c7715fc..b5958c8e 100644
--- a/alc/mixer/mixer_sse.cpp
+++ b/alc/mixer/mixer_sse.cpp
@@ -229,15 +229,16 @@ void Mix_<SSETag>(const ALfloat *data, const al::span<FloatBufferLine> OutBuffer
}
template<>
-void MixRow_<SSETag>(ALfloat *OutBuffer, const ALfloat *Gains,
- const al::span<const FloatBufferLine> InSamples, const ALsizei InPos, const ALsizei BufferSize)
+void MixRow_<SSETag>(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;