aboutsummaryrefslogtreecommitdiffstats
path: root/alc/effects
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2020-09-09 14:02:02 -0700
committerChris Robinson <[email protected]>2020-09-09 14:02:02 -0700
commitce0a45cbc7b64fa93c9a6df87a0116824e8a85d8 (patch)
tree2cddfc89cb84523584ab1dfe7206de1de4c39bd0 /alc/effects
parent68a099ba35b9cf1fe0dd18e240abd48662ce75f3 (diff)
Don't assume iterators are pointers
Diffstat (limited to 'alc/effects')
-rw-r--r--alc/effects/convolution.cpp4
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<>{});