summaryrefslogtreecommitdiffstats
path: root/src/libs/engine/LADSPANode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/engine/LADSPANode.cpp')
-rw-r--r--src/libs/engine/LADSPANode.cpp11
1 files changed, 11 insertions, 0 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)