Mercurial > hg > sonic-annotator
comparison runner/main.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 | 318e2f177ed5 |
children | fae326c22df5 |
comparison
equal
deleted
inserted
replaced
94:41c4de1e05d8 | 95:03b1d83fca29 |
---|---|
142 | 142 |
143 cerr << endl; | 143 cerr << endl; |
144 cerr << "Sonic Annotator v" << RUNNER_VERSION << endl; | 144 cerr << "Sonic Annotator v" << RUNNER_VERSION << endl; |
145 cerr << "A utility for batch feature extraction from audio files." << endl; | 145 cerr << "A utility for batch feature extraction from audio files." << endl; |
146 cerr << "Mark Levy, Chris Sutton and Chris Cannam, Queen Mary, University of London." << endl; | 146 cerr << "Mark Levy, Chris Sutton and Chris Cannam, Queen Mary, University of London." << endl; |
147 cerr << "Copyright 2007-2013 Queen Mary, University of London." << endl; | 147 cerr << "Copyright 2007-2014 Queen Mary, University of London." << endl; |
148 cerr << endl; | 148 cerr << endl; |
149 cerr << "This program is free software. You may redistribute copies of it under the" << endl; | 149 cerr << "This program is free software. You may redistribute copies of it under the" << endl; |
150 cerr << "terms of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>." << endl; | 150 cerr << "terms of the GNU General Public License <http://www.gnu.org/licenses/gpl.html>." << endl; |
151 cerr << "This program is supplied with NO WARRANTY, to the extent permitted by law." << endl; | 151 cerr << "This program is supplied with NO WARRANTY, to the extent permitted by law." << endl; |
152 cerr << endl; | 152 cerr << endl; |
609 } | 609 } |
610 | 610 |
611 map<string, string> writerArgs; | 611 map<string, string> writerArgs; |
612 FeatureWriter::ParameterList pl(writer->getSupportedParameters()); | 612 FeatureWriter::ParameterList pl(writer->getSupportedParameters()); |
613 | 613 |
614 for (int k = 0; k < pl.size(); ++k) { | 614 for (int k = 0; k < (int)pl.size(); ++k) { |
615 | 615 |
616 string argbase = pl[k].name; | 616 string argbase = pl[k].name; |
617 QString literal = QString("--%1-%2") | 617 QString literal = QString("--%1-%2") |
618 .arg(i->c_str()).arg(argbase.c_str()); | 618 .arg(i->c_str()).arg(argbase.c_str()); |
619 | 619 |
620 for (int j = 0; j < otherArgs.size(); ) { | 620 for (int j = 0; j < (int)otherArgs.size(); ) { |
621 | 621 |
622 if (otherArgs[j] != literal) { | 622 if (otherArgs[j] != literal) { |
623 ++j; | 623 ++j; |
624 continue; | 624 continue; |
625 } | 625 } |
667 for (set<string>::const_iterator i = requestedTransformListFiles.begin(); | 667 for (set<string>::const_iterator i = requestedTransformListFiles.begin(); |
668 i != requestedTransformListFiles.end(); ++i) { | 668 i != requestedTransformListFiles.end(); ++i) { |
669 PlaylistFileReader reader(i->c_str()); | 669 PlaylistFileReader reader(i->c_str()); |
670 if (reader.isOK()) { | 670 if (reader.isOK()) { |
671 vector<QString> files = reader.load(); | 671 vector<QString> files = reader.load(); |
672 for (int j = 0; j < files.size(); ++j) { | 672 for (int j = 0; j < (int)files.size(); ++j) { |
673 requestedTransformFiles.insert(files[j].toStdString()); | 673 requestedTransformFiles.insert(files[j].toStdString()); |
674 } | 674 } |
675 } else { | 675 } else { |
676 cerr << myname.toStdString() << ": failed to read template list file \"" << *i << "\"" << endl; | 676 cerr << myname.toStdString() << ": failed to read template list file \"" << *i << "\"" << endl; |
677 exit(2); | 677 exit(2); |
769 } | 769 } |
770 } | 770 } |
771 } | 771 } |
772 } | 772 } |
773 | 773 |
774 for (int i = 0; i < writers.size(); ++i) delete writers[i]; | 774 for (int i = 0; i < (int)writers.size(); ++i) delete writers[i]; |
775 | 775 |
776 #ifdef HAVE_FFTW3 | 776 #ifdef HAVE_FFTW3 |
777 settings.beginGroup("FFTWisdom"); | 777 settings.beginGroup("FFTWisdom"); |
778 char *cwisdom = fftw_export_wisdom_to_string(); | 778 char *cwisdom = fftw_export_wisdom_to_string(); |
779 if (cwisdom) { | 779 if (cwisdom) { |