aboutsummaryrefslogtreecommitdiffstats
path: root/alc/effects/echo.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2019-08-20 04:16:44 -0700
committerChris Robinson <[email protected]>2019-08-20 04:16:44 -0700
commit102ef6cb3356ef81e2a392d3aa8bd6324eb3ff30 (patch)
tree2f661c63be78c7f611665b2fb5a29ff58813b543 /alc/effects/echo.cpp
parent4883091f5de278b7469790efa466df5d93d465b0 (diff)
Pass a span for the Mix function's input
Diffstat (limited to 'alc/effects/echo.cpp')
-rw-r--r--alc/effects/echo.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/effects/echo.cpp b/alc/effects/echo.cpp
index d41c4f67..57279005 100644
--- a/alc/effects/echo.cpp
+++ b/alc/effects/echo.cpp
@@ -156,8 +156,8 @@ void EchoState::process(const ALsizei samplesToDo, const FloatBufferLine *RESTRI
mOffset = offset;
for(ALsizei c{0};c < 2;c++)
- MixSamples(mTempBuffer[c], samplesOut, mGains[c].Current, mGains[c].Target, samplesToDo, 0,
- samplesToDo);
+ MixSamples({mTempBuffer[c], mTempBuffer[c]+samplesToDo}, samplesOut, mGains[c].Current,
+ mGains[c].Target, samplesToDo, 0);
}