comparison transform/TransformFactory.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 b18f8c5fb4f5
children a299c4cec0f8
comparison
equal deleted inserted replaced
842:23d3a6eca5c3 843:e802e550a1f2
36 #include <QTextStream> 36 #include <QTextStream>
37 37
38 #include "base/Thread.h" 38 #include "base/Thread.h"
39 39
40 //#define DEBUG_TRANSFORM_FACTORY 1 40 //#define DEBUG_TRANSFORM_FACTORY 1
41
42 using std::cerr;
43 using std::endl;
44 41
45 TransformFactory * 42 TransformFactory *
46 TransformFactory::m_instance = new TransformFactory; 43 TransformFactory::m_instance = new TransformFactory;
47 44
48 TransformFactory * 45 TransformFactory *
530 } 527 }
531 528
532 //!!! if (descriptor->controlOutputPortCount == 0 || 529 //!!! if (descriptor->controlOutputPortCount == 0 ||
533 // descriptor->audioInputPortCount == 0) continue; 530 // descriptor->audioInputPortCount == 0) continue;
534 531
535 // std::cout << "TransformFactory::populateRealTimePlugins: plugin " << pluginId << " has " << descriptor->controlOutputPortCount << " control output ports, " << descriptor->audioOutputPortCount << " audio outputs, " << descriptor->audioInputPortCount << " audio inputs" << endl; 532 // cout << "TransformFactory::populateRealTimePlugins: plugin " << pluginId << " has " << descriptor->controlOutputPortCount << " control output ports, " << descriptor->audioOutputPortCount << " audio outputs, " << descriptor->audioInputPortCount << " audio inputs" << endl;
536 533
537 QString pluginName = descriptor->name.c_str(); 534 QString pluginName = descriptor->name.c_str();
538 QString category = factory->getPluginCategory(pluginId); 535 QString category = factory->getPluginCategory(pluginId);
539 bool configurable = (descriptor->parameterCount > 0); 536 bool configurable = (descriptor->parameterCount > 0);
540 QString maker = descriptor->maker.c_str(); 537 QString maker = descriptor->maker.c_str();
745 } 742 }
746 743
747 m_uninstalledTransformsPopulated = true; 744 m_uninstalledTransformsPopulated = true;
748 745
749 #ifdef DEBUG_TRANSFORM_FACTORY 746 #ifdef DEBUG_TRANSFORM_FACTORY
750 std::cerr << "populateUninstalledTransforms exiting" << std::endl; 747 cerr << "populateUninstalledTransforms exiting" << endl;
751 #endif 748 #endif
752 } 749 }
753 750
754 Transform 751 Transform
755 TransformFactory::getDefaultTransformFor(TransformId id, size_t rate) 752 TransformFactory::getDefaultTransformFor(TransformId id, size_t rate)
1152 m_populatingSlowly = false; 1149 m_populatingSlowly = false;
1153 return results; 1150 return results;
1154 } 1151 }
1155 1152
1156 if (!m_uninstalledTransformsPopulated) { 1153 if (!m_uninstalledTransformsPopulated) {
1157 std::cerr << "WARNING: TransformFactory::search: Uninstalled transforms are not populated yet" << endl 1154 cerr << "WARNING: TransformFactory::search: Uninstalled transforms are not populated yet" << endl
1158 << "and are not being populated either -- was the thread not started correctly?" << endl; 1155 << "and are not being populated either -- was the thread not started correctly?" << endl;
1159 m_uninstalledTransformsMutex.unlock(); 1156 m_uninstalledTransformsMutex.unlock();
1160 return results; 1157 return results;
1161 } 1158 }
1162 1159