comparison runner/FeatureExtractionManager.cpp @ 95:03b1d83fca29

Update subrepos, fix compile for updated versions, track version.h
author Chris Cannam
date Wed, 01 Oct 2014 08:49:01 +0100
parents 350f61d5d9be
children 136d8496a4b8 526feaad5820
comparison
equal deleted inserted replaced
94:41c4de1e05d8 95:03b1d83fca29
457 457
458 // Open to determine validity, channel count, sample rate only 458 // Open to determine validity, channel count, sample rate only
459 // (then close, and open again later with actual desired rate &c) 459 // (then close, and open again later with actual desired rate &c)
460 460
461 AudioFileReader *reader = 461 AudioFileReader *reader =
462 AudioFileReaderFactory::createReader(source, 0, &retrievalProgress); 462 AudioFileReaderFactory::createReader(source, 0, false,
463 &retrievalProgress);
463 464
464 if (!reader) { 465 if (!reader) {
465 throw FailedToOpenFile(audioSource); 466 throw FailedToOpenFile(audioSource);
466 } 467 }
467 468
502 if (!force) throw; 503 if (!force) throw;
503 cerr << "ERROR: Feature extraction failed for playlist entry \"" 504 cerr << "ERROR: Feature extraction failed for playlist entry \""
504 << files[i].toStdString() 505 << files[i].toStdString()
505 << "\": " << e.what() << endl; 506 << "\": " << e.what() << endl;
506 // print a note only if we have more files to process 507 // print a note only if we have more files to process
507 if (++i != files.size()) { 508 if (++i != (int)files.size()) {
508 cerr << "NOTE: \"--force\" option was provided, continuing (more errors may occur)" << endl; 509 cerr << "NOTE: \"--force\" option was provided, continuing (more errors may occur)" << endl;
509 } 510 }
510 } 511 }
511 } 512 }
512 return; 513 return;
543 if (!reader) { 544 if (!reader) {
544 ProgressPrinter retrievalProgress("Retrieving audio data..."); 545 ProgressPrinter retrievalProgress("Retrieving audio data...");
545 FileSource source(audioSource, &retrievalProgress); 546 FileSource source(audioSource, &retrievalProgress);
546 source.waitForData(); 547 source.waitForData();
547 reader = AudioFileReaderFactory::createReader 548 reader = AudioFileReaderFactory::createReader
548 (source, m_sampleRate, &retrievalProgress); 549 (source, m_sampleRate, false, &retrievalProgress);
549 retrievalProgress.done(); 550 retrievalProgress.done();
550 } 551 }
551 552
552 if (!reader) { 553 if (!reader) {
553 throw FailedToOpenFile(audioSource); 554 throw FailedToOpenFile(audioSource);