From f153def94194050b331c7a2674959b9ea1d0008d Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 25 Dec 2019 18:39:22 -0800 Subject: Pass a span for the biquad filter input --- alc/effects/reverb.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'alc/effects/reverb.cpp') diff --git a/alc/effects/reverb.cpp b/alc/effects/reverb.cpp index 6a5503f5..c8ebba68 100644 --- a/alc/effects/reverb.cpp +++ b/alc/effects/reverb.cpp @@ -286,10 +286,10 @@ struct T60Filter { const ALfloat hfDecayTime, const ALfloat lf0norm, const ALfloat hf0norm); /* Applies the two T60 damping filter sections. */ - void process(ALfloat *samples, const size_t todo) + void process(const al::span samples) { - HFFilter.process(samples, samples, todo); - LFFilter.process(samples, samples, todo); + HFFilter.process(samples, samples.begin()); + LFFilter.process(samples, samples.begin()); } }; @@ -1359,7 +1359,7 @@ void ReverbState::lateUnfaded(const size_t offset, const size_t todo) late_delay.Line[late_feedb_tap++][j]*midGain; } while(--td); } - mLate.T60[j].process(mTempSamples[j].data(), todo); + mLate.T60[j].process({mTempSamples[j].data(), todo}); } /* Apply a vector all-pass to improve micro-surface diffusion, and write @@ -1420,7 +1420,7 @@ void ReverbState::lateFaded(const size_t offset, const size_t todo, const ALfloa late_delay.Line[late_feedb_tap1++][j]*gfade1; } while(--td); } - mLate.T60[j].process(mTempSamples[j].data(), todo); + mLate.T60[j].process({mTempSamples[j].data(), todo}); } mLate.VecAp.processFaded(mTempSamples, offset, mixX, mixY, fade, fadeStep, todo); @@ -1445,9 +1445,9 @@ void ReverbState::process(const size_t samplesToDo, const al::span