aboutsummaryrefslogtreecommitdiffstats
path: root/src/jack.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-11-16 14:59:31 -0500
committerDavid Robillard <d@drobilla.net>2024-11-24 19:03:19 -0500
commit25593e614eb3ef6a62a603aa4704d9a4ff49364d (patch)
tree78140112afa4d764aaeb687104b36fdbc688e0ac /src/jack.c
parent23c175f6b91cfe1a21c7218b27901a600aa5af86 (diff)
downloadjalv-25593e614eb3ef6a62a603aa4704d9a4ff49364d.tar.gz
jalv-25593e614eb3ef6a62a603aa4704d9a4ff49364d.tar.bz2
jalv-25593e614eb3ef6a62a603aa4704d9a4ff49364d.zip
Factor out jalv_write_get_message() from process callbacks
Diffstat (limited to 'src/jack.c')
-rw-r--r--src/jack.c6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/jack.c b/src/jack.c
index 62100a9..c4d8411 100644
--- a/src/jack.c
+++ b/src/jack.c
@@ -182,11 +182,7 @@ jack_process_cb(jack_nframes_t nframes, void* data)
if (jalv->request_update) {
// Plugin state has changed, request an update
- const LV2_Atom_Object get = {
- {sizeof(LV2_Atom_Object_Body), jalv->urids.atom_Object},
- {0, jalv->urids.patch_Get}};
- lv2_evbuf_write(
- &iter, 0, 0, get.atom.type, get.atom.size, LV2_ATOM_BODY_CONST(&get));
+ jalv_write_get_message(&iter, &jalv->urids);
}
if (port->sys_port) {