From 06bd42a00bd86f5d487727ff8f08797f9286b27f Mon Sep 17 00:00:00 2001 From: David Robillard Date: Sat, 16 Nov 2024 18:26:31 -0500 Subject: Use message mechanism to request plugin state updates Replaces highly questionable cross-thread use of the request_update flag. --- src/jack.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/jack.c') diff --git a/src/jack.c b/src/jack.c index a138f57..5ea9065 100644 --- a/src/jack.c +++ b/src/jack.c @@ -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); -- cgit v1.2.1