From 63c5211051577398419f3fa41423faa5cd6a97b1 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 5 Aug 2007 05:28:48 +0000 Subject: 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 --- src/libs/engine/InputPort.cpp | 3 --- src/libs/engine/NodeFactory.cpp | 8 ++++++++ 2 files changed, 8 insertions(+), 3 deletions(-) (limited to 'src') 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; -- cgit v1.2.1