comparison src/vamp-hostsdk/PluginChannelAdapter.cpp @ 282:e0b7a35ea18e

* remove some debug
author cannam
date Fri, 20 Mar 2009 15:49:59 +0000
parents 4454843ff384
children c97e70ed5abc
comparison
equal deleted inserted replaced
281:c860f892c3d7 282:e0b7a35ea18e
161 } 161 }
162 } 162 }
163 163
164 m_pluginChannels = minch; 164 m_pluginChannels = minch;
165 165
166 std::cerr << "PluginChannelAdapter::initialise: expanding " << m_inputChannels << " to " << m_pluginChannels << " for plugin" << std::endl; 166 // std::cerr << "PluginChannelAdapter::initialise: expanding " << m_inputChannels << " to " << m_pluginChannels << " for plugin" << std::endl;
167 167
168 } else if (m_inputChannels > maxch) { 168 } else if (m_inputChannels > maxch) {
169 169
170 // We only need m_buffer if we are mixing down to a single 170 // We only need m_buffer if we are mixing down to a single
171 // channel -- otherwise we can just forward the same float* as 171 // channel -- otherwise we can just forward the same float* as
173 173
174 if (maxch == 1) { 174 if (maxch == 1) {
175 m_buffer = new float *[1]; 175 m_buffer = new float *[1];
176 m_buffer[0] = new float[blockSize]; 176 m_buffer[0] = new float[blockSize];
177 177
178 std::cerr << "PluginChannelAdapter::initialise: mixing " << m_inputChannels << " to mono for plugin" << std::endl; 178 // std::cerr << "PluginChannelAdapter::initialise: mixing " << m_inputChannels << " to mono for plugin" << std::endl;
179 179
180 } else { 180 } else {
181 181
182 std::cerr << "PluginChannelAdapter::initialise: reducing " << m_inputChannels << " to " << m_pluginChannels << " for plugin" << std::endl; 182 // std::cerr << "PluginChannelAdapter::initialise: reducing " << m_inputChannels << " to " << m_pluginChannels << " for plugin" << std::endl;
183 } 183 }
184 184
185 m_pluginChannels = maxch; 185 m_pluginChannels = maxch;
186 186
187 } else { 187 } else {
188 188
189 std::cerr << "PluginChannelAdapter::initialise: accepting given number of channels (" << m_inputChannels << ")" << std::endl; 189 // std::cerr << "PluginChannelAdapter::initialise: accepting given number of channels (" << m_inputChannels << ")" << std::endl;
190 m_pluginChannels = m_inputChannels; 190 m_pluginChannels = m_inputChannels;
191 } 191 }
192 192
193 return m_plugin->initialise(m_pluginChannels, stepSize, blockSize); 193 return m_plugin->initialise(m_pluginChannels, stepSize, blockSize);
194 } 194 }