diff options
author | David Robillard <d@drobilla.net> | 2007-10-13 22:15:26 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2007-10-13 22:15:26 +0000 |
commit | 1c92f8782006264e94dd25a650841f72f91650cf (patch) | |
tree | 7791a64365510fc1599cdbdb998ae95e929c84f5 /src/libs/client | |
parent | cf63c971c2a8ee8cc2ddcddb52ce8135cd29619b (diff) | |
download | ingen-1c92f8782006264e94dd25a650841f72f91650cf.tar.gz ingen-1c92f8782006264e94dd25a650841f72f91650cf.tar.bz2 ingen-1c92f8782006264e94dd25a650841f72f91650cf.zip |
Dynamic polyphony fixes.
git-svn-id: http://svn.drobilla.net/lad/ingen@883 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs/client')
-rw-r--r-- | src/libs/client/NodeModel.cpp | 14 |
1 files changed, 4 insertions, 10 deletions
diff --git a/src/libs/client/NodeModel.cpp b/src/libs/client/NodeModel.cpp index 1ee67dcf..b429d356 100644 --- a/src/libs/client/NodeModel.cpp +++ b/src/libs/client/NodeModel.cpp @@ -151,24 +151,21 @@ void NodeModel::port_value_range(SharedPtr<PortModel> port, float& min, float& max) { assert(port->parent().get() == this); - - Glib::Mutex::Lock(PluginModel::rdf_world()->mutex()); - - // FIXME: cache these values - // Plugin value first #ifdef HAVE_SLV2 + // Plugin value first if (_plugin && _plugin->type() == PluginModel::LV2) { + Glib::Mutex::Lock(PluginModel::rdf_world()->mutex()); + min = slv2_port_get_minimum_value( _plugin->slv2_plugin(), slv2_plugin_get_port_by_symbol(_plugin->slv2_plugin(), port->path().name().c_str())); + max = slv2_port_get_maximum_value( _plugin->slv2_plugin(), slv2_plugin_get_port_by_symbol(_plugin->slv2_plugin(), port->path().name().c_str())); - - //cerr << "SLV2: " << min << " .. " << max << endl; } #endif @@ -179,9 +176,6 @@ NodeModel::port_value_range(SharedPtr<PortModel> port, float& min, float& max) min = min_atom.get_float(); if (max_atom.type() == Atom::FLOAT) max = max_atom.get_float(); - - //cerr << (unsigned)plugin()->type() << "::" << _path << ".port_value_range(" << port->path().name() - // << ") == " << min << " .. " << max << endl; } |