From 893ffe9a84d497d38e6e472b0cffbd9c37e0c366 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 29 May 2019 21:58:37 -0700 Subject: Use span for MixSamples --- Alc/effects/dedicated.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Alc/effects/dedicated.cpp') diff --git a/Alc/effects/dedicated.cpp b/Alc/effects/dedicated.cpp index 7b44e392..b4eaa8e8 100644 --- a/Alc/effects/dedicated.cpp +++ b/Alc/effects/dedicated.cpp @@ -92,9 +92,8 @@ void DedicatedState::update(const ALCcontext* UNUSED(context), const ALeffectslo void DedicatedState::process(const ALsizei samplesToDo, const FloatBufferLine *RESTRICT samplesIn, const ALsizei /*numInput*/, FloatBufferLine *RESTRICT samplesOut, const ALsizei numOutput) { - MixSamples(samplesIn[0].data(), numOutput, - &reinterpret_cast(samplesOut[0]), mCurrentGains, mTargetGains, - samplesToDo, 0, samplesToDo); + MixSamples(samplesIn[0].data(), {samplesOut, samplesOut+numOutput}, mCurrentGains, + mTargetGains, samplesToDo, 0, samplesToDo); } -- cgit v1.2.3