diff options
author | David Robillard <d@drobilla.net> | 2022-08-10 14:26:06 -0400 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2022-08-17 13:51:06 -0400 |
commit | 53812b2fc4aa809bf8156faee88b59cc69d1b9ec (patch) | |
tree | d3973385b33dcac5ff23d8fca280bbc10d863960 /src/jack.c | |
parent | 8e5bf419f1938fb2b97cd984641e51727a7673aa (diff) | |
download | jalv-53812b2fc4aa809bf8156faee88b59cc69d1b9ec.tar.gz jalv-53812b2fc4aa809bf8156faee88b59cc69d1b9ec.tar.bz2 jalv-53812b2fc4aa809bf8156faee88b59cc69d1b9ec.zip |
Factor out jalv_write_event()
Diffstat (limited to 'src/jack.c')
-rw-r--r-- | src/jack.c | 5 |
1 files changed, 3 insertions, 2 deletions
@@ -17,6 +17,7 @@ #include "lilv/lilv.h" #include "lv2/atom/atom.h" #include "lv2/atom/forge.h" +#include "lv2/urid/urid.h" #include "zix/sem.h" #include <jack/jack.h> @@ -227,7 +228,7 @@ jack_process_cb(jack_nframes_t nframes, void* data) // Get event from LV2 buffer uint32_t frames = 0; uint32_t subframes = 0; - uint32_t type = 0; + LV2_URID type = 0; uint32_t size = 0; void* body = NULL; lv2_evbuf_get(i, &frames, &subframes, &type, &size, &body); @@ -239,7 +240,7 @@ jack_process_cb(jack_nframes_t nframes, void* data) if (jalv->has_ui) { // Forward event to UI - jalv_send_to_ui(jalv, p, type, size, body); + jalv_write_event(jalv, jalv->plugin_to_ui, p, size, type, body); } } } else if (send_ui_updates && port->flow == FLOW_OUTPUT && |