#include "libardour-config.h"
#endif
-#define __STDC_FORMAT_MACROS 1
#include <stdint.h>
#include <sys/types.h>
BootMessage (_("Discovering Plugins"));
}
+
+PluginManager::~PluginManager()
+{
+#ifdef HAVE_SLV2
+ delete _lv2_world;
+#endif
+}
+
+
void
PluginManager::refresh ()
{
case ':' :
case '\0':
continue;
- case '/' :
+ case G_DIR_SEPARATOR :
if (ladspa_path[found + strlen(standard_paths[i]) + 1] == ':' ||
ladspa_path[found + strlen(standard_paths[i]) + 1] == '\0') {
continue;
PathScanner scanner;
vector<string *>* rdf_files;
vector<string *>::iterator x;
- string uri;
rdf_files = scanner (path, rdf_filter, 0, true, true);
if (rdf_files) {
for (x = rdf_files->begin(); x != rdf_files->end (); ++x) {
- uri = "file://" + **x;
+ const string uri(string("file://") + **x);
if (lrdf_read_file(uri.c_str())) {
warning << "Could not parse rdf file: " << uri << endmsg;
info->index = 0;
info->n_inputs.set_audio (finfo->numInputs);
info->n_outputs.set_audio (finfo->numOutputs);
+ info->n_inputs.set_midi (finfo->wantMidi ? 1 : 0);
info->type = ARDOUR::VST;
_vst_plugin_info->push_back (info);