diff options
author | David Robillard <d@drobilla.net> | 2024-11-16 18:26:31 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-11-24 19:03:54 -0500 |
commit | 06bd42a00bd86f5d487727ff8f08797f9286b27f (patch) | |
tree | f0240d6095ebdbb7ddf5ff4f099db45c919b3425 /src/jack.c | |
parent | d52d38ccdc9bc38fe5c62eb2458be30b3cf6ca59 (diff) | |
download | jalv-06bd42a00bd86f5d487727ff8f08797f9286b27f.tar.gz jalv-06bd42a00bd86f5d487727ff8f08797f9286b27f.tar.bz2 jalv-06bd42a00bd86f5d487727ff8f08797f9286b27f.zip |
Use message mechanism to request plugin state updates
Replaces highly questionable cross-thread use of the request_update flag.
Diffstat (limited to 'src/jack.c')
-rw-r--r-- | src/jack.c | 6 |
1 files changed, 0 insertions, 6 deletions
@@ -199,11 +199,6 @@ jack_process_cb(jack_nframes_t nframes, void* data) &iter, 0, 0, lv2_pos->type, lv2_pos->size, LV2_ATOM_BODY(lv2_pos)); } - if (port->is_primary && jalv->request_update) { - // Plugin state has changed, request an update - jalv_write_get_message(&iter, &jalv->urids); - } - if (port->sys_port) { // Write Jack MIDI input void* buf = jack_port_get_buffer(port->sys_port, nframes); @@ -219,7 +214,6 @@ jack_process_cb(jack_nframes_t nframes, void* data) lv2_evbuf_reset(port->evbuf, false); } } - jalv->request_update = false; // Run plugin for this cycle const bool send_ui_updates = jalv_run(jalv, nframes); |