Mercurial > hg > svcore
changeset 364:876a79afd376
* Also use multi-channel read when supplying data to real-time effects plugin
author | Chris Cannam |
---|---|
date | Thu, 24 Jan 2008 14:40:48 +0000 |
parents | 0e30c8ec15a0 |
children | 3e3ecb45b6d1 |
files | plugin/transform/RealTimeEffectModelTransformer.cpp |
diffstat | 1 files changed, 7 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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) {