Loop by reference

This commit is contained in:
Paul Fd 2020-02-09 16:48:35 +01:00
parent 6461b4f4b4
commit f30675d0d8

View file

@ -274,7 +274,7 @@ void sfz::Voice::renderBlock(AudioSpan<float> 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());
}