comparison framework/TransformUserConfigurator.cpp @ 229:8c13e8219903 debug-output

Convert many cerrs to DEBUGs
author Chris Cannam
date Mon, 16 May 2011 17:19:40 +0100
parents 67cea66bd588
children 8aace2d9f1c2
comparison
equal deleted inserted replaced
228:67cea66bd588 229:8c13e8219903
35 Vamp::PluginBase *plugin, 35 Vamp::PluginBase *plugin,
36 int &minChannels, int &maxChannels) 36 int &minChannels, int &maxChannels)
37 { 37 {
38 if (plugin && plugin->getType() == "Feature Extraction Plugin") { 38 if (plugin && plugin->getType() == "Feature Extraction Plugin") {
39 Vamp::Plugin *vp = static_cast<Vamp::Plugin *>(plugin); 39 Vamp::Plugin *vp = static_cast<Vamp::Plugin *>(plugin);
40 std::cerr << "TransformUserConfigurator::getChannelRange: is a VP" << std::endl; 40 DEBUG << "TransformUserConfigurator::getChannelRange: is a VP" << endl;
41 minChannels = vp->getMinChannelCount(); 41 minChannels = vp->getMinChannelCount();
42 maxChannels = vp->getMaxChannelCount(); 42 maxChannels = vp->getMaxChannelCount();
43 return true; 43 return true;
44 } else { 44 } else {
45 std::cerr << "TransformUserConfigurator::getChannelRange: is not a VP" << std::endl; 45 DEBUG << "TransformUserConfigurator::getChannelRange: is not a VP" << endl;
46 return TransformFactory::getInstance()-> 46 return TransformFactory::getInstance()->
47 getTransformChannelRange(identifier, minChannels, maxChannels); 47 getTransformChannelRange(identifier, minChannels, maxChannels);
48 } 48 }
49 } 49 }
50 50
117 117
118 RealTimePluginInstance *rtp = 118 RealTimePluginInstance *rtp =
119 static_cast<RealTimePluginInstance *>(plugin); 119 static_cast<RealTimePluginInstance *>(plugin);
120 120
121 if (effect && source) { 121 if (effect && source) {
122 std::cerr << "Setting auditioning effect" << std::endl; 122 DEBUG << "Setting auditioning effect" << endl;
123 source->setAuditioningEffect(rtp); 123 source->setAuditioningEffect(rtp);
124 } 124 }
125 } 125 }
126 126
127 int sourceChannels = 1; 127 int sourceChannels = 1;