summaryrefslogtreecommitdiffstats
path: root/src/libs/engine
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/engine')
-rw-r--r--src/libs/engine/LADSPANode.cpp11
-rw-r--r--src/libs/engine/QueuedEngineInterface.cpp5
-rw-r--r--src/libs/engine/QueuedEngineInterface.hpp2
3 files changed, 17 insertions, 1 deletions
diff --git a/src/libs/engine/LADSPANode.cpp b/src/libs/engine/LADSPANode.cpp
index 9f030aee..b5451ac3 100644
--- a/src/libs/engine/LADSPANode.cpp
+++ b/src/libs/engine/LADSPANode.cpp
@@ -121,6 +121,17 @@ LADSPANode::instantiate()
Sample default_val, min, max;
get_port_limits(j, default_val, min, max);
+ // Work around broke-ass crackhead plugins
+ if (default_val < min) {
+ cerr << "WARNING: Broken LADSPA: Port default < minimum. Minimum adjusted." << endl;
+ min = default_val;
+ }
+
+ if (default_val > max) {
+ cerr << "WARNING: Broken LADSPA: Port default > maximum. Maximum adjusted." << endl;
+ max = default_val;
+ }
+
// Set default value
if (port->buffer_size() == 1) {
for (size_t i=0; i < _poly; ++i)
diff --git a/src/libs/engine/QueuedEngineInterface.cpp b/src/libs/engine/QueuedEngineInterface.cpp
index f54f850a..a8906c97 100644
--- a/src/libs/engine/QueuedEngineInterface.cpp
+++ b/src/libs/engine/QueuedEngineInterface.cpp
@@ -304,6 +304,11 @@ QueuedEngineInterface::request_port_value(const string& port_path)
push_queued(new RequestPortValueEvent(_engine, _responder, now(), port_path));
}
+void
+QueuedEngineInterface::request_metadata(const string& object_path, const string& key)
+{
+ push_queued(new RequestMetadataEvent(_engine, _responder, now(), object_path, key));
+}
void
QueuedEngineInterface::request_plugins()
diff --git a/src/libs/engine/QueuedEngineInterface.hpp b/src/libs/engine/QueuedEngineInterface.hpp
index 889b8f8e..7b0f32d4 100644
--- a/src/libs/engine/QueuedEngineInterface.hpp
+++ b/src/libs/engine/QueuedEngineInterface.hpp
@@ -147,7 +147,7 @@ public:
virtual void request_port_value(const string& port_path);
- virtual void request_metadata(const string& path, const string& key);
+ virtual void request_metadata(const string& object_path, const string& key);
virtual void request_plugins();