Mercurial > hg > svcore
comparison transform/RealTimeEffectModelTransformer.cpp @ 687:06f13a3b9e9e debug-output
Convert many cerrs to DEBUGs
| author | Chris Cannam |
|---|---|
| date | Mon, 16 May 2011 17:19:09 +0100 |
| parents | b4a8d8221eaf |
| children | 573d45e9487b |
comparison
equal
deleted
inserted
replaced
| 686:b4a8d8221eaf | 687:06f13a3b9e9e |
|---|---|
| 41 | 41 |
| 42 QString pluginId = transform.getPluginIdentifier(); | 42 QString pluginId = transform.getPluginIdentifier(); |
| 43 | 43 |
| 44 if (!m_transform.getBlockSize()) m_transform.setBlockSize(1024); | 44 if (!m_transform.getBlockSize()) m_transform.setBlockSize(1024); |
| 45 | 45 |
| 46 // std::cerr << "RealTimeEffectModelTransformer::RealTimeEffectModelTransformer: plugin " << pluginId << ", output " << output << std::endl; | 46 // DEBUG << "RealTimeEffectModelTransformer::RealTimeEffectModelTransformer: plugin " << pluginId << ", output " << output << endl; |
| 47 | 47 |
| 48 RealTimePluginFactory *factory = | 48 RealTimePluginFactory *factory = |
| 49 RealTimePluginFactory::instanceFor(pluginId); | 49 RealTimePluginFactory::instanceFor(pluginId); |
| 50 | 50 |
| 51 if (!factory) { | 51 if (!factory) { |
| 108 RealTimeEffectModelTransformer::getConformingInput() | 108 RealTimeEffectModelTransformer::getConformingInput() |
| 109 { | 109 { |
| 110 DenseTimeValueModel *dtvm = | 110 DenseTimeValueModel *dtvm = |
| 111 dynamic_cast<DenseTimeValueModel *>(getInputModel()); | 111 dynamic_cast<DenseTimeValueModel *>(getInputModel()); |
| 112 if (!dtvm) { | 112 if (!dtvm) { |
| 113 std::cerr << "RealTimeEffectModelTransformer::getConformingInput: WARNING: Input model is not conformable to DenseTimeValueModel" << std::endl; | 113 DEBUG << "RealTimeEffectModelTransformer::getConformingInput: WARNING: Input model is not conformable to DenseTimeValueModel" << endl; |
| 114 } | 114 } |
| 115 return dtvm; | 115 return dtvm; |
| 116 } | 116 } |
| 117 | 117 |
| 118 void | 118 void |
| 120 { | 120 { |
| 121 DenseTimeValueModel *input = getConformingInput(); | 121 DenseTimeValueModel *input = getConformingInput(); |
| 122 if (!input) return; | 122 if (!input) return; |
| 123 | 123 |
| 124 while (!input->isReady() && !m_abandoned) { | 124 while (!input->isReady() && !m_abandoned) { |
| 125 std::cerr << "RealTimeEffectModelTransformer::run: Waiting for input model to be ready..." << std::endl; | 125 DEBUG << "RealTimeEffectModelTransformer::run: Waiting for input model to be ready..." << endl; |
| 126 usleep(500000); | 126 usleep(500000); |
| 127 } | 127 } |
| 128 if (m_abandoned) return; | 128 if (m_abandoned) return; |
| 129 | 129 |
| 130 SparseTimeValueModel *stvm = dynamic_cast<SparseTimeValueModel *>(m_output); | 130 SparseTimeValueModel *stvm = dynamic_cast<SparseTimeValueModel *>(m_output); |
