comparison transform/RealTimePluginTransform.cpp @ 44:5a72bf7490ae

...
author Chris Cannam
date Wed, 04 Oct 2006 14:01:28 +0000
parents 75c5951cf9d7
children 527598e2fa10
comparison
equal deleted inserted replaced
43:0739be123304 44:5a72bf7490ae
51 } 51 }
52 52
53 DenseTimeValueModel *input = getInput(); 53 DenseTimeValueModel *input = getInput();
54 if (!input) return; 54 if (!input) return;
55 55
56 m_plugin = factory->instantiatePlugin(pluginId, 0, 0, m_input->getSampleRate(), 56 m_plugin = factory->instantiatePlugin(pluginId, 0, 0,
57 m_input->getSampleRate(),
57 m_context.blockSize, 58 m_context.blockSize,
58 input->getChannelCount()); 59 input->getChannelCount());
59 60
60 if (!m_plugin) { 61 if (!m_plugin) {
61 std::cerr << "RealTimePluginTransform: Failed to instantiate plugin \"" 62 std::cerr << "RealTimePluginTransform: Failed to instantiate plugin \""
118 119
119 if (stvm && (m_outputNo >= m_plugin->getControlOutputCount())) return; 120 if (stvm && (m_outputNo >= m_plugin->getControlOutputCount())) return;
120 121
121 size_t sampleRate = input->getSampleRate(); 122 size_t sampleRate = input->getSampleRate();
122 int channelCount = input->getChannelCount(); 123 int channelCount = input->getChannelCount();
123 if (m_context.channel != -1) channelCount = 1; 124 if (!wwfm && m_context.channel != -1) channelCount = 1;
124 125
125 size_t blockSize = m_plugin->getBufferSize(); 126 size_t blockSize = m_plugin->getBufferSize();
126 127
127 float **buffers = m_plugin->getAudioInputBuffers(); 128 float **buffers = m_plugin->getAudioInputBuffers();
128 129