summaryrefslogtreecommitdiffstats
path: root/src/libs/client/PluginModel.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/libs/client/PluginModel.hpp')
-rw-r--r--src/libs/client/PluginModel.hpp10
1 files changed, 8 insertions, 2 deletions
diff --git a/src/libs/client/PluginModel.hpp b/src/libs/client/PluginModel.hpp
index de90bba2..f5ac71f4 100644
--- a/src/libs/client/PluginModel.hpp
+++ b/src/libs/client/PluginModel.hpp
@@ -54,7 +54,9 @@ public:
, _name(name)
{
#ifdef HAVE_SLV2
- _slv2_plugin = slv2_plugins_get_by_uri(_slv2_plugins, uri.c_str());
+ SLV2Value plugin_uri = slv2_value_new_uri(_slv2_world, uri.c_str());
+ _slv2_plugin = slv2_plugins_get_by_uri(_slv2_plugins, plugin_uri);
+ slv2_value_free(plugin_uri);
#endif
}
@@ -82,8 +84,12 @@ public:
string default_node_name(SharedPtr<PatchModel> parent);
#ifdef HAVE_SLV2
- SLV2Plugin slv2_plugin() { return _slv2_plugin; }
static SLV2World slv2_world() { return _slv2_world; }
+ SLV2Plugin slv2_plugin() { return _slv2_plugin; }
+
+ SLV2Port slv2_port(uint32_t index) {
+ return slv2_plugin_get_port_by_index(_slv2_plugin, index);
+ }
static void set_slv2_world(SLV2World world) {
_slv2_world = world;