Mercurial > hg > sonic-annotator
comparison runner/main.cpp @ 20:7d87bf308509
* set up default RDF index location
author | Chris Cannam |
---|---|
date | Mon, 29 Jun 2009 13:47:12 +0000 |
parents | 475f4623feba |
children | 9a4e410bda7a |
comparison
equal
deleted
inserted
replaced
19:bd1deebe1129 | 20:7d87bf308509 |
---|---|
548 cerr << helpStr.toStdString() << endl; | 548 cerr << helpStr.toStdString() << endl; |
549 exit(2); | 549 exit(2); |
550 } | 550 } |
551 } | 551 } |
552 | 552 |
553 QSettings settings; | |
554 | |
553 #ifdef HAVE_FFTW3 | 555 #ifdef HAVE_FFTW3 |
554 QSettings settings; | |
555 settings.beginGroup("FFTWisdom"); | 556 settings.beginGroup("FFTWisdom"); |
556 QString wisdom = settings.value("wisdom").toString(); | 557 QString wisdom = settings.value("wisdom").toString(); |
557 if (wisdom != "") { | 558 if (wisdom != "") { |
558 fftw_import_wisdom_from_string(wisdom.toLocal8Bit().data()); | 559 fftw_import_wisdom_from_string(wisdom.toLocal8Bit().data()); |
559 } | 560 } |
560 settings.endGroup(); | 561 settings.endGroup(); |
561 #endif | 562 #endif |
563 | |
564 settings.beginGroup("RDF"); | |
565 if (!settings.contains("rdf-indices")) { | |
566 QStringList list; | |
567 list << "http://www.vamp-plugins.org/rdf/plugins/index.txt"; | |
568 settings.setValue("rdf-indices", list); | |
569 } | |
570 settings.endGroup(); | |
562 | 571 |
563 FeatureExtractionManager manager; | 572 FeatureExtractionManager manager; |
564 | 573 |
565 if (!requestedSummaryTypes.empty()) { | 574 if (!requestedSummaryTypes.empty()) { |
566 if (!manager.setSummaryTypes(requestedSummaryTypes, | 575 if (!manager.setSummaryTypes(requestedSummaryTypes, |