Mercurial > hg > svcore
changeset 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 | 12b7bf0c3915 |
children | 64e7bbb255d3 |
files | transform/FeatureExtractionModelTransformer.cpp transform/RealTimeEffectModelTransformer.cpp |
diffstat | 2 files changed, 0 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/transform/FeatureExtractionModelTransformer.cpp Tue Jun 10 09:11:42 2008 +0000 +++ b/transform/FeatureExtractionModelTransformer.cpp Wed Jun 11 12:53:20 2008 +0000 @@ -297,13 +297,6 @@ if (!m_output) return; while (!input->isReady()) { -/* - if (dynamic_cast<WaveFileModel *>(input)) { - 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; - sleep(2); - break; // no need to wait - } -*/ std::cerr << "FeatureExtractionModelTransformer::run: Waiting for input model to be ready..." << std::endl; sleep(1); }
--- a/transform/RealTimeEffectModelTransformer.cpp Tue Jun 10 09:11:42 2008 +0000 +++ b/transform/RealTimeEffectModelTransformer.cpp Wed Jun 11 12:53:20 2008 +0000 @@ -122,7 +122,6 @@ if (!input) return; while (!input->isReady()) { - if (dynamic_cast<WaveFileModel *>(input)) break; // no need to wait std::cerr << "RealTimeEffectModelTransformer::run: Waiting for input model to be ready..." << std::endl; sleep(1); }