From f30675d0d84e00dfc6a22ace2751a9bdaafc9b41 Mon Sep 17 00:00:00 2001 From: Paul Fd Date: Sun, 9 Feb 2020 16:48:35 +0100 Subject: [PATCH] Loop by reference --- src/sfizz/Voice.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/sfizz/Voice.cpp b/src/sfizz/Voice.cpp index df7430c8..398f6407 100644 --- a/src/sfizz/Voice.cpp +++ b/src/sfizz/Voice.cpp @@ -274,7 +274,7 @@ void sfz::Voice::renderBlock(AudioSpan buffer) noexcept const float* inputChannels[2] { buffer.getChannel(0), buffer.getChannel(1) }; float* outputChannels[2] { buffer.getChannel(0), buffer.getChannel(1) }; - for (auto filter: filters) { + for (auto& filter: filters) { filter->process(inputChannels, outputChannels, buffer.getNumFrames()); }