Mercurial > hg > svcore
comparison transform/RealTimeEffectModelTransformer.cpp @ 843:e802e550a1f2
Drop std:: from cout, cerr, endl -- pull these in through Debug.h
author | Chris Cannam |
---|---|
date | Tue, 26 Nov 2013 13:35:08 +0000 |
parents | 1424aa29ae95 |
children | 418cd2064769 |
comparison
equal
deleted
inserted
replaced
842:23d3a6eca5c3 | 843:e802e550a1f2 |
---|---|
47 | 47 |
48 RealTimePluginFactory *factory = | 48 RealTimePluginFactory *factory = |
49 RealTimePluginFactory::instanceFor(pluginId); | 49 RealTimePluginFactory::instanceFor(pluginId); |
50 | 50 |
51 if (!factory) { | 51 if (!factory) { |
52 std::cerr << "RealTimeEffectModelTransformer: No factory available for plugin id \"" | 52 cerr << "RealTimeEffectModelTransformer: No factory available for plugin id \"" |
53 << pluginId << "\"" << std::endl; | 53 << pluginId << "\"" << endl; |
54 return; | 54 return; |
55 } | 55 } |
56 | 56 |
57 DenseTimeValueModel *input = getConformingInput(); | 57 DenseTimeValueModel *input = getConformingInput(); |
58 if (!input) return; | 58 if (!input) return; |
61 input->getSampleRate(), | 61 input->getSampleRate(), |
62 m_transform.getBlockSize(), | 62 m_transform.getBlockSize(), |
63 input->getChannelCount()); | 63 input->getChannelCount()); |
64 | 64 |
65 if (!m_plugin) { | 65 if (!m_plugin) { |
66 std::cerr << "RealTimeEffectModelTransformer: Failed to instantiate plugin \"" | 66 cerr << "RealTimeEffectModelTransformer: Failed to instantiate plugin \"" |
67 << pluginId << "\"" << std::endl; | 67 << pluginId << "\"" << endl; |
68 return; | 68 return; |
69 } | 69 } |
70 | 70 |
71 TransformFactory::getInstance()->setPluginParameters(m_transform, m_plugin); | 71 TransformFactory::getInstance()->setPluginParameters(m_transform, m_plugin); |
72 | 72 |
73 if (m_outputNo >= 0 && | 73 if (m_outputNo >= 0 && |
74 m_outputNo >= int(m_plugin->getControlOutputCount())) { | 74 m_outputNo >= int(m_plugin->getControlOutputCount())) { |
75 std::cerr << "RealTimeEffectModelTransformer: Plugin has fewer than desired " << m_outputNo << " control outputs" << std::endl; | 75 cerr << "RealTimeEffectModelTransformer: Plugin has fewer than desired " << m_outputNo << " control outputs" << endl; |
76 return; | 76 return; |
77 } | 77 } |
78 | 78 |
79 if (m_outputNo == -1) { | 79 if (m_outputNo == -1) { |
80 | 80 |
214 } | 214 } |
215 } | 215 } |
216 } | 216 } |
217 | 217 |
218 /* | 218 /* |
219 std::cerr << "Input for plugin: " << m_plugin->getAudioInputCount() << " channels "<< std::endl; | 219 cerr << "Input for plugin: " << m_plugin->getAudioInputCount() << " channels "<< endl; |
220 | 220 |
221 for (size_t ch = 0; ch < m_plugin->getAudioInputCount(); ++ch) { | 221 for (size_t ch = 0; ch < m_plugin->getAudioInputCount(); ++ch) { |
222 std::cerr << "Input channel " << ch << std::endl; | 222 cerr << "Input channel " << ch << endl; |
223 for (size_t i = 0; i < 100; ++i) { | 223 for (size_t i = 0; i < 100; ++i) { |
224 std::cerr << inbufs[ch][i] << " "; | 224 cerr << inbufs[ch][i] << " "; |
225 if (isnan(inbufs[ch][i])) { | 225 if (isnan(inbufs[ch][i])) { |
226 std::cerr << "\n\nWARNING: NaN in audio input" << std::endl; | 226 cerr << "\n\nWARNING: NaN in audio input" << endl; |
227 } | 227 } |
228 } | 228 } |
229 } | 229 } |
230 */ | 230 */ |
231 | 231 |