diff options
Diffstat (limited to 'alc/effects/reverb.cpp')
-rw-r--r-- | alc/effects/reverb.cpp | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/alc/effects/reverb.cpp b/alc/effects/reverb.cpp index 5f8daabe..1e5cb861 100644 --- a/alc/effects/reverb.cpp +++ b/alc/effects/reverb.cpp @@ -427,16 +427,16 @@ struct ReverbState final : public EffectState { std::fill(tmpspan.begin(), tmpspan.end(), 0.0f); MixRowSamples(tmpspan, {A2B[c], NUM_LINES}, mEarlySamples[0].data(), mEarlySamples[0].size()); - MixSamples(mTempLine.data(), samplesOut, mEarly.CurrentGain[c], - mEarly.PanGain[c], counter, offset, todo); + MixSamples(tmpspan, samplesOut, mEarly.CurrentGain[c], mEarly.PanGain[c], counter, + offset); } for(size_t c{0u};c < NUM_LINES;c++) { std::fill(tmpspan.begin(), tmpspan.end(), 0.0f); MixRowSamples(tmpspan, {A2B[c], NUM_LINES}, mLateSamples[0].data(), mLateSamples[0].size()); - MixSamples(mTempLine.data(), samplesOut, mLate.CurrentGain[c], mLate.PanGain[c], - counter, offset, todo); + MixSamples(tmpspan, samplesOut, mLate.CurrentGain[c], mLate.PanGain[c], counter, + offset); } } @@ -456,10 +456,10 @@ struct ReverbState final : public EffectState { * higher-order output. */ const ALfloat hfscale{(c==0) ? mOrderScales[0] : mOrderScales[1]}; - mAmbiSplitter[0][c].applyHfScale(mTempLine.data(), hfscale, todo); + mAmbiSplitter[0][c].applyHfScale(tmpspan.data(), hfscale, todo); - MixSamples(mTempLine.data(), samplesOut, mEarly.CurrentGain[c], - mEarly.PanGain[c], counter, offset, todo); + MixSamples(tmpspan, samplesOut, mEarly.CurrentGain[c], mEarly.PanGain[c], counter, + offset); } for(size_t c{0u};c < NUM_LINES;c++) { @@ -468,10 +468,10 @@ struct ReverbState final : public EffectState { mLateSamples[0].size()); const ALfloat hfscale{(c==0) ? mOrderScales[0] : mOrderScales[1]}; - mAmbiSplitter[1][c].applyHfScale(mTempLine.data(), hfscale, todo); + mAmbiSplitter[1][c].applyHfScale(tmpspan.data(), hfscale, todo); - MixSamples(mTempLine.data(), samplesOut, mLate.CurrentGain[c], mLate.PanGain[c], - counter, offset, todo); + MixSamples(tmpspan, samplesOut, mLate.CurrentGain[c], mLate.PanGain[c], counter, + offset); } } |