diff options
author | David Robillard <d@drobilla.net> | 2008-04-12 18:18:41 +0000 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2008-04-12 18:18:41 +0000 |
commit | 2a6dada56409c0f4e2cf8f353044f45e12ce2d38 (patch) | |
tree | 76453d322da24a42e6b5024555445fe18f5badf3 /src/libs | |
parent | 56b36b843389f6e52dcdb31878ea6262cca56b42 (diff) | |
download | ingen-2a6dada56409c0f4e2cf8f353044f45e12ce2d38.tar.gz ingen-2a6dada56409c0f4e2cf8f353044f45e12ce2d38.tar.bz2 ingen-2a6dada56409c0f4e2cf8f353044f45e12ce2d38.zip |
LV2 UI extension updates from larsl.
git-svn-id: http://svn.drobilla.net/lad/ingen@1181 a436a847-0d15-0410-975c-d299462d15a1
Diffstat (limited to 'src/libs')
-rw-r--r-- | src/libs/client/PluginUI.cpp | 14 | ||||
-rw-r--r-- | src/libs/gui/NodeModule.cpp | 2 |
2 files changed, 10 insertions, 6 deletions
diff --git a/src/libs/client/PluginUI.cpp b/src/libs/client/PluginUI.cpp index 5ce48bd1..b9ef9050 100644 --- a/src/libs/client/PluginUI.cpp +++ b/src/libs/client/PluginUI.cpp @@ -30,6 +30,7 @@ static void lv2_ui_write(LV2UI_Controller controller, uint32_t port_index, uint32_t buffer_size, + uint32_t format, const void* buffer) { /*cerr << "********* LV2 UI WRITE:" << endl; @@ -50,9 +51,12 @@ lv2_ui_write(LV2UI_Controller controller, PluginUI* ui = (PluginUI*)controller; SharedPtr<PortModel> port = ui->node()->ports()[port_index]; - - ui->engine()->set_port_value_immediate(port->path(), - port->type().uri(), buffer_size, buffer); + + if (format == 0) { + ui->engine()->set_port_value_immediate(port->path(), + port->type().uri(), + buffer_size, buffer); + } } @@ -80,7 +84,7 @@ PluginUI::create(SharedPtr<EngineInterface> engine, SharedPtr<PluginUI> ret; SLV2Value gtk_gui_uri = slv2_value_new_uri(world, - "http://ll-plugins.nongnu.org/lv2/ext/ui#GtkUI"); + "http://lv2plug.in/ns/extensions/ui#GtkUI"); SLV2UIs uis = slv2_plugin_get_uis(plugin); SLV2UI ui = NULL; @@ -99,7 +103,7 @@ PluginUI::create(SharedPtr<EngineInterface> engine, cout << "Found GTK Plugin UI: " << slv2_ui_get_uri(ui) << endl; ret = SharedPtr<PluginUI>(new PluginUI(engine, node)); SLV2UIInstance inst = slv2_ui_instantiate( - plugin, ui, lv2_ui_write, ret.get(), NULL, NULL); + plugin, ui, lv2_ui_write, ret.get(), NULL); if (inst) { ret->set_instance(inst); diff --git a/src/libs/gui/NodeModule.cpp b/src/libs/gui/NodeModule.cpp index 856c4486..fefe84fb 100644 --- a/src/libs/gui/NodeModule.cpp +++ b/src/libs/gui/NodeModule.cpp @@ -114,7 +114,7 @@ NodeModule::control_change(uint32_t index, float control) const LV2UI_Descriptor* ui_descriptor = slv2_ui_instance_get_descriptor(inst); LV2UI_Handle ui_handle = slv2_ui_instance_get_handle(inst); if (ui_descriptor->port_event) - ui_descriptor->port_event(ui_handle, index, 4, &control); + ui_descriptor->port_event(ui_handle, index, 4, 0, &control); } } |