# HG changeset patch # User Chris Cannam # Date 1201185648 0 # Node ID 876a79afd376bff86c68de541a677413f0aa49f9 # Parent 0e30c8ec15a05f1a3d21cfbfdb2ebd3339079bc3 * Also use multi-channel read when supplying data to real-time effects plugin diff -r 0e30c8ec15a0 -r 876a79afd376 plugin/transform/RealTimeEffectModelTransformer.cpp --- a/plugin/transform/RealTimeEffectModelTransformer.cpp Thu Jan 24 14:35:43 2008 +0000 +++ b/plugin/transform/RealTimeEffectModelTransformer.cpp Thu Jan 24 14:40:48 2008 +0000 @@ -195,14 +195,14 @@ } } } else { - for (size_t ch = 0; ch < channelCount; ++ch) { - if (inbufs && inbufs[ch]) { - got = input->getData - (ch, blockFrame, blockSize, inbufs[ch]); - while (got < blockSize) { - inbufs[ch][got++] = 0.0; - } + got = input->getData(0, channelCount - 1, + blockFrame, blockSize, + inbufs); + while (got < blockSize) { + for (size_t ch = 0; ch < channelCount; ++ch) { + inbufs[ch][got] = 0.0; } + ++got; } for (size_t ch = channelCount; ch < m_plugin->getAudioInputCount(); ++ch) { for (long i = 0; i < blockSize; ++i) {