summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPaul Davis <paul@linuxaudiosystems.com>2009-10-01 15:50:32 +0000
committerPaul Davis <paul@linuxaudiosystems.com>2009-10-01 15:50:32 +0000
commit865849e3f123b684cc369d8343638c89500ac52b (patch)
tree510bbc52323828a183f5c13a2920cfaecc559e43
parentc01e920f1506f89d2b2e84b39555fd37b32d3f01 (diff)
LV2 epp logarithmic patch from nedko (#2775)
git-svn-id: svn://localhost/ardour2/branches/2.0-ongoing@5699 d708f5d6-7413-0410-9779-e7cbd77b26cf
-rw-r--r--libs/ardour/lv2_plugin.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/lv2_plugin.cc b/libs/ardour/lv2_plugin.cc
index d948c72140..e162b8db70 100644
--- a/libs/ardour/lv2_plugin.cc
+++ b/libs/ardour/lv2_plugin.cc
@@ -363,7 +363,7 @@ LV2Plugin::get_parameter_descriptor (uint32_t which, ParameterDescriptor& desc)
desc.integer_step = slv2_port_has_property(_plugin, port, _world.integer);
desc.toggled = slv2_port_has_property(_plugin, port, _world.toggled);
- desc.logarithmic = false; // TODO (LV2 extension)
+ desc.logarithmic = slv2_port_has_property(_plugin, port, _world.logarithmic);
desc.sr_dependent = slv2_port_has_property(_plugin, port, _world.srate);
desc.label = slv2_value_as_string(slv2_port_get_name(_plugin, port));
desc.lower = min ? slv2_value_as_float(min) : 0.0f;
@@ -570,6 +570,7 @@ LV2World::LV2World()
srate = slv2_value_new_uri(world, SLV2_NAMESPACE_LV2 "sampleRate");
gtk_gui = slv2_value_new_uri(world, "http://lv2plug.in/ns/extensions/ui#GtkUI");
external_gui = slv2_value_new_uri(world, "http://lv2plug.in/ns/extensions/ui#external");
+ logarithmic = slv2_value_new_uri(world, "http://lv2plug.in/ns/dev/extportinfo#logarithmic");
}
LV2World::~LV2World()