From 227b462dc73ff4b1b99e26b5d4f2150d73417728 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Wed, 5 Oct 2016 05:22:42 -0400 Subject: Tidy --- src/jack.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/jack.c b/src/jack.c index ece2567..13765f1 100644 --- a/src/jack.c +++ b/src/jack.c @@ -203,9 +203,7 @@ jack_process_cb(jack_nframes_t nframes, void* data) jalv->plugin_latency = port->control; jack_recompute_total_latencies(client); } - } - - if (port->flow == FLOW_OUTPUT && port->type == TYPE_EVENT) { + } else if (port->flow == FLOW_OUTPUT && port->type == TYPE_EVENT) { void* buf = NULL; if (port->sys_port) { buf = jack_port_get_buffer(port->sys_port, nframes); @@ -230,9 +228,8 @@ jack_process_cb(jack_nframes_t nframes, void* data) jalv_send_to_ui(jalv, p, type, size, body); } } - } else if (send_ui_updates - && port->flow != FLOW_INPUT - && port->type == TYPE_CONTROL) { + } else if (send_ui_updates && + port->flow == FLOW_OUTPUT && port->type == TYPE_CONTROL) { char buf[sizeof(ControlChange) + sizeof(float)]; ControlChange* ev = (ControlChange*)buf; ev->index = p; -- cgit v1.2.1