Mercurial > hg > sonic-visualiser
comparison transform/FeatureExtractionPluginTransform.cpp @ 148:0c22273a1d8c
* Enable threaded decoding for Ogg and MP3 files.
Needs some work on reducing updates to the overview widget
author | Chris Cannam |
---|---|
date | Wed, 06 Jun 2007 16:24:55 +0000 |
parents | d27f13651e67 |
children | 37cb005f7c40 |
comparison
equal
deleted
inserted
replaced
147:140ea2569bcc | 148:0c22273a1d8c |
---|---|
240 { | 240 { |
241 DenseTimeValueModel *input = getInput(); | 241 DenseTimeValueModel *input = getInput(); |
242 if (!input) return; | 242 if (!input) return; |
243 | 243 |
244 while (!input->isReady()) { | 244 while (!input->isReady()) { |
245 if (dynamic_cast<WaveFileModel *>(input)) break; // no need to wait | 245 /* |
246 if (dynamic_cast<WaveFileModel *>(input)) { | |
247 std::cerr << "FeatureExtractionPluginTransform::run: Model is not ready, but it's not a WaveFileModel (it's a " << typeid(input).name() << "), so that's OK" << std::endl; | |
248 sleep(2); | |
249 break; // no need to wait | |
250 } | |
251 */ | |
246 std::cerr << "FeatureExtractionPluginTransform::run: Waiting for input model to be ready..." << std::endl; | 252 std::cerr << "FeatureExtractionPluginTransform::run: Waiting for input model to be ready..." << std::endl; |
247 sleep(1); | 253 sleep(1); |
248 } | 254 } |
249 | 255 |
250 if (!m_output) return; | 256 if (!m_output) return; |