summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2007-08-05 05:28:48 +0000
committerDavid Robillard <d@drobilla.net>2007-08-05 05:28:48 +0000
commit63c5211051577398419f3fa41423faa5cd6a97b1 (patch)
treec593516dce5e3f13893f6ccd04027671b8f6ea11
parente671a1e03df0d327691b9d13fb3bd753fb58a85c (diff)
downloadingen-63c5211051577398419f3fa41423faa5cd6a97b1.tar.gz
ingen-63c5211051577398419f3fa41423faa5cd6a97b1.tar.bz2
ingen-63c5211051577398419f3fa41423faa5cd6a97b1.zip
Remove obnoxious/expensive MIDI event count debugging print statement.
Ignore libtool .la files when searching for plugins (fixes missing LADSPA plugins in deprecated Om patches). git-svn-id: http://svn.drobilla.net/lad/ingen@677 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/libs/engine/InputPort.cpp3
-rw-r--r--src/libs/engine/NodeFactory.cpp8
2 files changed, 8 insertions, 3 deletions
diff --git a/src/libs/engine/InputPort.cpp b/src/libs/engine/InputPort.cpp
index 6466dee3..5025f6e3 100644
--- a/src/libs/engine/InputPort.cpp
+++ b/src/libs/engine/InputPort.cpp
@@ -183,9 +183,6 @@ InputPort::pre_process(SampleCount nframes, FrameTime start, FrameTime end)
for (uint32_t i=0; i < _poly; ++i)
_buffers.at(i)->prepare_read(nframes);
- if (_type == DataType::MIDI)
- cerr << path() << " nevents: " << ((MidiBuffer*)_buffers.at(0))->event_count() << endl;
-
if (!do_mixdown) {
assert(_buffers.at(0)->is_joined_to((*_connections.begin())->buffer(0)));
return;
diff --git a/src/libs/engine/NodeFactory.cpp b/src/libs/engine/NodeFactory.cpp
index b491c0c8..dfc8c194 100644
--- a/src/libs/engine/NodeFactory.cpp
+++ b/src/libs/engine/NodeFactory.cpp
@@ -136,6 +136,8 @@ NodeFactory::plugin(const string& type, const string& lib, const string& label)
if ((*i)->type_string() == type && (*i)->lib_name() == lib && (*i)->plug_label() == label)
return (*i);
+ cerr << "ERROR: Failed to find " << type << " plugin " << lib << " / " << label << endl;
+
return NULL;
}
@@ -565,6 +567,12 @@ NodeFactory::load_ladspa_plugins()
full_lib_name = dir +"/"+ pfile->d_name;
+ // Ignore stupid libtool files. Kludge alert.
+ if (full_lib_name.substr(full_lib_name.length()-3) == ".la") {
+ cerr << "WARNING: Skipping stupid libtool file " << pfile->d_name << endl;
+ continue;
+ }
+
Glib::Module* plugin_library = library(full_lib_name);
if (!plugin_library) {
cerr << "WARNING: Failed to load library " << full_lib_name << endl;