comparison transform/FeatureExtractionModelTransformer.cpp @ 418:d35d4e79c95b

* Wait for input to be ready before running real-time effect -- even if it's a wave file model, because they are now progressively decoded
author Chris Cannam
date Wed, 11 Jun 2008 12:53:20 +0000
parents 115f60df1e4d
children 6036b38177e2
comparison
equal deleted inserted replaced
417:12b7bf0c3915 418:d35d4e79c95b
295 if (!input) return; 295 if (!input) return;
296 296
297 if (!m_output) return; 297 if (!m_output) return;
298 298
299 while (!input->isReady()) { 299 while (!input->isReady()) {
300 /*
301 if (dynamic_cast<WaveFileModel *>(input)) {
302 std::cerr << "FeatureExtractionModelTransformer::run: Model is not ready, but it's not a WaveFileModel (it's a " << typeid(input).name() << "), so that's OK" << std::endl;
303 sleep(2);
304 break; // no need to wait
305 }
306 */
307 std::cerr << "FeatureExtractionModelTransformer::run: Waiting for input model to be ready..." << std::endl; 300 std::cerr << "FeatureExtractionModelTransformer::run: Waiting for input model to be ready..." << std::endl;
308 sleep(1); 301 sleep(1);
309 } 302 }
310 303
311 size_t sampleRate = input->getSampleRate(); 304 size_t sampleRate = input->getSampleRate();