diff options
author | Chris Robinson <[email protected]> | 2020-09-09 14:02:02 -0700 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2020-09-09 14:02:02 -0700 |
commit | ce0a45cbc7b64fa93c9a6df87a0116824e8a85d8 (patch) | |
tree | 2cddfc89cb84523584ab1dfe7206de1de4c39bd0 /alc/effects | |
parent | 68a099ba35b9cf1fe0dd18e240abd48662ce75f3 (diff) |
Don't assume iterators are pointers
Diffstat (limited to 'alc/effects')
-rw-r--r-- | alc/effects/convolution.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
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<>{}); |