From ce0a45cbc7b64fa93c9a6df87a0116824e8a85d8 Mon Sep 17 00:00:00 2001 From: Chris Robinson Date: Wed, 9 Sep 2020 14:02:02 -0700 Subject: Don't assume iterators are pointers --- alc/effects/convolution.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'alc') diff --git a/alc/effects/convolution.cpp b/alc/effects/convolution.cpp index bb8e31d1..2a0a0fad 100644 --- a/alc/effects/convolution.cpp +++ b/alc/effects/convolution.cpp @@ -397,8 +397,8 @@ void ConvolutionState::process(const size_t samplesToDo, for(size_t c{0};c < chans.size();++c) { auto buf_iter = chans[c].mBuffer.begin() + base; - apply_fir({std::addressof(*buf_iter), todo}, mInput.cbegin()+1 + mFifoPos, - mFilter[c].cbegin()); + apply_fir({std::addressof(*buf_iter), todo}, mInput.data()+1 + mFifoPos, + mFilter[c].data()); auto fifo_iter = mOutput[c].begin() + mFifoPos; std::transform(fifo_iter, fifo_iter+todo, buf_iter, buf_iter, std::plus<>{}); -- cgit v1.2.3