comparison plugin/LADSPAPluginFactory.cpp @ 259:dc46851837d6

* Fix many compile warnings, remove some debug output
author Chris Cannam
date Mon, 30 Apr 2007 13:36:23 +0000
parents 3a6af0e5e2d1
children d4a33cdca86f
comparison
equal deleted inserted replaced
258:96a6dd889c68 259:dc46851837d6
592 { 592 {
593 std::vector<QString> pathList = getPluginPath(); 593 std::vector<QString> pathList = getPluginPath();
594 594
595 // std::cerr << "LADSPAPluginFactory::discoverPlugins - " 595 // std::cerr << "LADSPAPluginFactory::discoverPlugins - "
596 // << "discovering plugins; path is "; 596 // << "discovering plugins; path is ";
597 for (std::vector<QString>::iterator i = pathList.begin(); 597 // for (std::vector<QString>::iterator i = pathList.begin();
598 i != pathList.end(); ++i) { 598 // i != pathList.end(); ++i) {
599 std::cerr << "[" << i->toStdString() << "] "; 599 // std::cerr << "[" << i->toStdString() << "] ";
600 } 600 // }
601 std::cerr << std::endl; 601 // std::cerr << std::endl;
602 602
603 #ifdef HAVE_LRDF 603 #ifdef HAVE_LRDF
604 // read the description files 604 // read the description files
605 // 605 //
606 QString baseUri; 606 QString baseUri;
707 def_uri = lrdf_get_default_uri(descriptor->UniqueID); 707 def_uri = lrdf_get_default_uri(descriptor->UniqueID);
708 if (def_uri) { 708 if (def_uri) {
709 defs = lrdf_get_setting_values(def_uri); 709 defs = lrdf_get_setting_values(def_uri);
710 } 710 }
711 711
712 int controlPortNumber = 1; 712 unsigned int controlPortNumber = 1;
713 713
714 for (unsigned long i = 0; i < descriptor->PortCount; i++) { 714 for (unsigned long i = 0; i < descriptor->PortCount; i++) {
715 715
716 if (LADSPA_IS_PORT_CONTROL(descriptor->PortDescriptors[i])) { 716 if (LADSPA_IS_PORT_CONTROL(descriptor->PortDescriptors[i])) {
717 717
718 if (def_uri && defs) { 718 if (def_uri && defs) {
719 719
720 for (int j = 0; j < defs->count; j++) { 720 for (unsigned int j = 0; j < defs->count; j++) {
721 if (defs->items[j].pid == controlPortNumber) { 721 if (defs->items[j].pid == controlPortNumber) {
722 // std::cerr << "Default for this port (" << defs->items[j].pid << ", " << defs->items[j].label << ") is " << defs->items[j].value << "; applying this to port number " << i << " with name " << descriptor->PortNames[i] << std::endl; 722 // std::cerr << "Default for this port (" << defs->items[j].pid << ", " << defs->items[j].label << ") is " << defs->items[j].value << "; applying this to port number " << i << " with name " << descriptor->PortNames[i] << std::endl;
723 m_portDefaults[descriptor->UniqueID][i] = 723 m_portDefaults[descriptor->UniqueID][i] =
724 defs->items[j].value; 724 defs->items[j].value;
725 } 725 }
818 { 818 {
819 #ifdef HAVE_LRDF 819 #ifdef HAVE_LRDF
820 lrdf_uris *uris = lrdf_get_instances(uri.toStdString().c_str()); 820 lrdf_uris *uris = lrdf_get_instances(uri.toStdString().c_str());
821 821
822 if (uris != NULL) { 822 if (uris != NULL) {
823 for (int i = 0; i < uris->count; ++i) { 823 for (unsigned int i = 0; i < uris->count; ++i) {
824 m_lrdfTaxonomy[lrdf_get_uid(uris->items[i])] = base; 824 m_lrdfTaxonomy[lrdf_get_uid(uris->items[i])] = base;
825 } 825 }
826 lrdf_free_uris(uris); 826 lrdf_free_uris(uris);
827 } 827 }
828 828
829 uris = lrdf_get_subclasses(uri.toStdString().c_str()); 829 uris = lrdf_get_subclasses(uri.toStdString().c_str());
830 830
831 if (uris != NULL) { 831 if (uris != NULL) {
832 for (int i = 0; i < uris->count; ++i) { 832 for (unsigned int i = 0; i < uris->count; ++i) {
833 char *label = lrdf_get_label(uris->items[i]); 833 char *label = lrdf_get_label(uris->items[i]);
834 generateTaxonomy(uris->items[i], 834 generateTaxonomy(uris->items[i],
835 base + (base.length() > 0 ? " > " : "") + label); 835 base + (base.length() > 0 ? " > " : "") + label);
836 } 836 }
837 lrdf_free_uris(uris); 837 lrdf_free_uris(uris);