summaryrefslogtreecommitdiffstats
path: root/slv2
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2008-05-03 17:27:00 +0000
committerDavid Robillard <d@drobilla.net>2008-05-03 17:27:00 +0000
commit9dd89e3a4b9d9f0bfb408c827358f8e97c12373b (patch)
treecd6db99dfac1fac9745f2313920e80f1fdcc6195 /slv2
parent572832bfd010ee82717ea0217b125404d11e5a16 (diff)
downloadlilv-9dd89e3a4b9d9f0bfb408c827358f8e97c12373b.tar.gz
lilv-9dd89e3a4b9d9f0bfb408c827358f8e97c12373b.tar.bz2
lilv-9dd89e3a4b9d9f0bfb408c827358f8e97c12373b.zip
Add slv2_plugin_get_port_ranges.
Use slv2_plugin_get_port_ranges in lv2_jack_host and lv2_inspect (significant performance improvement for plugins with lots of ports). git-svn-id: http://svn.drobilla.net/lad/slv2@1193 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'slv2')
-rw-r--r--slv2/plugin.h16
1 files changed, 16 insertions, 0 deletions
diff --git a/slv2/plugin.h b/slv2/plugin.h
index 0592bfd..435f869 100644
--- a/slv2/plugin.h
+++ b/slv2/plugin.h
@@ -270,6 +270,22 @@ uint32_t
slv2_plugin_get_num_ports(SLV2Plugin p);
+/** Get the port ranges (minimum, maximum and default values) for all ports.
+ *
+ * min_values, max_values and def_values must either point to an array of
+ * N floats, where N is the value returned by slv2_plugin_get_num_ports() for
+ * this plugin, or NULL. This function will set the elements of the non-NULL
+ * array pointers to the minimum, maximum and default values of the ports on
+ * this plugin, with array index corresponding to port index. If a port doesn't
+ * have a minimum, maximum or default value, the corresponding array element will
+ * be set to NAN.
+ */
+void
+slv2_plugin_get_port_ranges(SLV2Plugin p,
+ float* min_values,
+ float* max_values,
+ float* def_values);
+
/** Get the number of ports on this plugin that are members of some class(es).
*
* Note that this is a varargs function so ports fitting any type 'profile'