aboutsummaryrefslogtreecommitdiffstats
path: root/src/jack.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-11-16 18:26:31 -0500
committerDavid Robillard <d@drobilla.net>2024-11-24 19:03:54 -0500
commit06bd42a00bd86f5d487727ff8f08797f9286b27f (patch)
treef0240d6095ebdbb7ddf5ff4f099db45c919b3425 /src/jack.c
parentd52d38ccdc9bc38fe5c62eb2458be30b3cf6ca59 (diff)
downloadjalv-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.c6
1 files changed, 0 insertions, 6 deletions
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);