diff options
author | Chris Robinson <[email protected]> | 2023-01-01 16:06:19 -0800 |
---|---|---|
committer | Chris Robinson <[email protected]> | 2023-01-01 16:06:19 -0800 |
commit | 073f970788a35657537da1b1dc7c4af450888698 (patch) | |
tree | 96f9d5f5918d49f2243dedce525d98374fed22ae /alc/effects | |
parent | cba526e1b082150f4a7160775f2ee6cb2deb024c (diff) |
Avoid some explicit casts and references
Diffstat (limited to 'alc/effects')
-rw-r--r-- | alc/effects/convolution.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/alc/effects/convolution.cpp b/alc/effects/convolution.cpp index 20510af2..20e5eff7 100644 --- a/alc/effects/convolution.cpp +++ b/alc/effects/convolution.cpp @@ -517,8 +517,7 @@ 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.data()+1 + mFifoPos, - mFilter[c].data()); + apply_fir({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<>{}); |