aboutsummaryrefslogtreecommitdiffstats
path: root/alc/effects/vmorpher.cpp
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2023-01-05 01:47:55 -0800
committerChris Robinson <[email protected]>2023-01-05 01:47:55 -0800
commit23c8a35505fe6ab7a5c87754911a133b23ac75cf (patch)
treed36b9dabb413680d8074f3e8aad0084691d20813 /alc/effects/vmorpher.cpp
parent58a18ab3c0126337d17939b5060fce28a39b8cf1 (diff)
Add and use mixers that process one input and output channel
Diffstat (limited to 'alc/effects/vmorpher.cpp')
-rw-r--r--alc/effects/vmorpher.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/alc/effects/vmorpher.cpp b/alc/effects/vmorpher.cpp
index 869c004e..81869dca 100644
--- a/alc/effects/vmorpher.cpp
+++ b/alc/effects/vmorpher.cpp
@@ -326,8 +326,8 @@ void VmorpherState::process(const size_t samplesToDo, const al::span<const Float
blended[i] = lerpf(mSampleBufferA[i], mSampleBufferB[i], mLfo[i]);
/* Now, mix the processed sound data to the output. */
- MixSamples({blended, td}, {&samplesOut[outidx], 1}, &chandata->mCurrentGain,
- &chandata->mTargetGain, samplesToDo-base, base);
+ MixSamples({blended, td}, samplesOut[outidx].data()+base, chandata->mCurrentGain,
+ chandata->mTargetGain, samplesToDo-base);
++chandata;
}