# HG changeset patch # User Chris Cannam # Date 1159970488 0 # Node ID 5a72bf7490aecac542af384515e52314f5e8b2d5 # Parent 0739be12330413b915d3f3b2dae82bddddde0097 ... diff -r 0739be123304 -r 5a72bf7490ae transform/RealTimePluginTransform.cpp --- a/transform/RealTimePluginTransform.cpp Wed Oct 04 12:20:15 2006 +0000 +++ b/transform/RealTimePluginTransform.cpp Wed Oct 04 14:01:28 2006 +0000 @@ -53,7 +53,8 @@ DenseTimeValueModel *input = getInput(); if (!input) return; - m_plugin = factory->instantiatePlugin(pluginId, 0, 0, m_input->getSampleRate(), + m_plugin = factory->instantiatePlugin(pluginId, 0, 0, + m_input->getSampleRate(), m_context.blockSize, input->getChannelCount()); @@ -120,7 +121,7 @@ size_t sampleRate = input->getSampleRate(); int channelCount = input->getChannelCount(); - if (m_context.channel != -1) channelCount = 1; + if (!wwfm && m_context.channel != -1) channelCount = 1; size_t blockSize = m_plugin->getBufferSize(); diff -r 0739be123304 -r 5a72bf7490ae transform/TransformFactory.cpp --- a/transform/TransformFactory.cpp Wed Oct 04 12:20:15 2006 +0000 +++ b/transform/TransformFactory.cpp Wed Oct 04 14:01:28 2006 +0000 @@ -519,8 +519,10 @@ getChannelRange(name, plugin, minChannels, maxChannels); int targetChannels = sourceChannels; - if (sourceChannels < minChannels) targetChannels = minChannels; - if (sourceChannels > maxChannels) targetChannels = maxChannels; + if (!effect) { + if (sourceChannels < minChannels) targetChannels = minChannels; + if (sourceChannels > maxChannels) targetChannels = maxChannels; + } int defaultChannel = context.channel;