comparison runner/FeatureExtractionManager.cpp @ 117:5be4995f4029

Tests (and minor resulting fixes) for remote file download
author Chris Cannam
date Wed, 08 Oct 2014 13:14:39 +0100
parents 1c0799754670
children b514bae9555e
comparison
equal deleted inserted replaced
116:1c0799754670 117:5be4995f4029
451 ProgressPrinter retrievalProgress("Determining default rate and channel count from first input file..."); 451 ProgressPrinter retrievalProgress("Determining default rate and channel count from first input file...");
452 452
453 FileSource source(audioSource, &retrievalProgress); 453 FileSource source(audioSource, &retrievalProgress);
454 if (!source.isAvailable()) { 454 if (!source.isAvailable()) {
455 cerr << "ERROR: File or URL \"" << audioSource.toStdString() 455 cerr << "ERROR: File or URL \"" << audioSource.toStdString()
456 << "\" could not be located" << endl; 456 << "\" could not be located";
457 if (source.getErrorString() != "") {
458 cerr << ": " << source.getErrorString();
459 }
460 cerr << endl;
457 throw FileNotFound(audioSource); 461 throw FileNotFound(audioSource);
458 } 462 }
459 463
460 source.waitForData(); 464 source.waitForData();
461 465