From 3593abd69807674d9949134f1ad2b7f5a9f69dc2 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sun, 28 Sep 2008 22:04:26 +0000 Subject: Merge weird split set_port_value / set_port_value_immediately API (whether a command is queued or 'immediate' is a property of the engine interface, really). git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@1532 a436a847-0d15-0410-975c-d299462d15a1 --- src/libs/client/PluginUI.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/libs/client/PluginUI.cpp') diff --git a/src/libs/client/PluginUI.cpp b/src/libs/client/PluginUI.cpp index df958f06..9c562135 100644 --- a/src/libs/client/PluginUI.cpp +++ b/src/libs/client/PluginUI.cpp @@ -64,7 +64,7 @@ lv2_ui_write(LV2UI_Controller controller, if (*(float*)buffer == port->value().get_float()) return; // do nothing (handle stupid plugin UIs that feed back) - ui->world()->engine->set_port_value_immediate(port->path(), Atom(*(float*)buffer)); + ui->world()->engine->set_port_value(port->path(), Atom(*(float*)buffer)); // FIXME: slow, need to cache ID } else if (format == map->uri_to_id(NULL, "http://lv2plug.in/ns/extensions/ui#Events")) { @@ -77,7 +77,7 @@ lv2_ui_write(LV2UI_Controller controller, LV2_Event* const ev = lv2_event_get(&iter, &data); if (ev->type == midi_event_type) { // FIXME: bundle multiple events by writing an entire buffer here - ui->world()->engine->set_port_value_immediate(port->path(), + ui->world()->engine->set_port_value(port->path(), Atom("lv2_midi:MidiEvent", ev->size, data)); } else { cerr << "WARNING: Unable to send event type " << ev->type << -- cgit v1.2.1