From 1d4494961b598055c94b8239e294c03c6ac1aaa8 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Tue, 20 Oct 2015 11:31:18 -0400 Subject: add commentary --- gtk2_ardour/lv2_plugin_ui.cc | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'gtk2_ardour') diff --git a/gtk2_ardour/lv2_plugin_ui.cc b/gtk2_ardour/lv2_plugin_ui.cc index 33fa2c746d..153f4efdd9 100644 --- a/gtk2_ardour/lv2_plugin_ui.cc +++ b/gtk2_ardour/lv2_plugin_ui.cc @@ -183,7 +183,7 @@ LV2PluginUI::output_update() if (!_inst) { return; } - + /* output ports (values set by DSP) need propagating to GUI */ uint32_t nports = _output_ports.size(); @@ -193,6 +193,10 @@ LV2PluginUI::output_update() suil_instance_port_event ((SuilInstance*)_inst, index, 4, 0, &val); } + /* Input ports marked for update because the control value changed + since the last redisplay. + */ + for (Updates::iterator i = _updates.begin(); i != _updates.end(); ++i) { float val = _lv2->get_parameter (*i); /* push current value to the GUI */ -- cgit v1.2.3