comparison transform/RealTimeEffectModelTransformer.cpp @ 690:1424aa29ae95

Seems to be a bad idea to use plain DEBUG symbol on OS/X (system wants it)
author Chris Cannam
date Tue, 14 Jun 2011 15:26:52 +0100
parents 573d45e9487b
children e802e550a1f2
comparison
equal deleted inserted replaced
689:573d45e9487b 690:1424aa29ae95
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 // DEBUG << "RealTimeEffectModelTransformer::RealTimeEffectModelTransformer: plugin " << pluginId << ", output " << output << endl; 46 // SVDEBUG << "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 DEBUG << "RealTimeEffectModelTransformer::getConformingInput: WARNING: Input model is not conformable to DenseTimeValueModel" << endl; 113 SVDEBUG << "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 DEBUG << "RealTimeEffectModelTransformer::run: Waiting for input model to be ready..." << endl; 125 SVDEBUG << "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);