diff options
author | David Robillard <d@drobilla.net> | 2016-10-05 05:22:42 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2016-10-05 05:22:42 -0400 |
commit | 227b462dc73ff4b1b99e26b5d4f2150d73417728 (patch) | |
tree | 642bcb7d79d5d0b826f76abdad5a8eb3f4f735a9 /src | |
parent | 866a90be1360627eba3a06340fba42b453d161e1 (diff) | |
download | jalv-227b462dc73ff4b1b99e26b5d4f2150d73417728.tar.gz jalv-227b462dc73ff4b1b99e26b5d4f2150d73417728.tar.bz2 jalv-227b462dc73ff4b1b99e26b5d4f2150d73417728.zip |
Tidy
Diffstat (limited to 'src')
-rw-r--r-- | src/jack.c | 9 |
1 files changed, 3 insertions, 6 deletions
@@ -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; |