# HG changeset patch # User Chris Cannam # Date 1229098325 0 # Node ID 21a31c779384bb9ee1b8199fdf79c9d3b4a4d5be # Parent 12f250173bf2b119715d49fa137eb0236914ef25 * progress tweaks diff -r 12f250173bf2 -r 21a31c779384 runner/FeatureExtractionManager.cpp --- a/runner/FeatureExtractionManager.cpp Fri Dec 12 15:33:55 2008 +0000 +++ b/runner/FeatureExtractionManager.cpp Fri Dec 12 16:12:05 2008 +0000 @@ -367,9 +367,9 @@ { if (m_plugins.empty()) return; - ProgressPrinter printer("Retrieving audio data..."); + ProgressPrinter retrievalProgress("Retrieving audio data..."); - FileSource source(audioSource, &printer); + FileSource source(audioSource, &retrievalProgress); if (!source.isAvailable()) { cerr << "ERROR: File or URL \"" << audioSource.toStdString() << "\" could not be located" << endl; @@ -399,7 +399,7 @@ } AudioFileReader *reader = - AudioFileReaderFactory::createReader(source, m_sampleRate, &printer); + AudioFileReaderFactory::createReader(source, m_sampleRate, &retrievalProgress); if (!reader) { cerr << "ERROR: File or URL \"" << audioSource.toStdString() @@ -408,7 +408,9 @@ } size_t channels = reader->getChannelCount(); - + + retrievalProgress.done(); + cerr << "Opened " << channels << "-channel file or URL \"" << audioSource.toStdString() << "\"" << endl; // reject file if it has too few channels, plugin will handle if it has too many