[][src]Function lilv_sys::lilv_plugin_get_port_ranges_float

pub unsafe extern "C" fn lilv_plugin_get_port_ranges_float(
    plugin: *const LilvPlugin,
    min_values: *mut f32,
    max_values: *mut f32,
    def_values: *mut f32
)

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 lilv_plugin_get_num_ports() for this plugin, or NULL. The elements of the array will be set to the 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, or the port's type is not float, the corresponding array element will be set to NAN.

This is a convenience method for the common case of getting the range of all float ports on a plugin, and may be significantly faster than repeated calls to lilv_port_get_range().