diff options
author | David Robillard <d@drobilla.net> | 2024-11-16 14:59:31 -0500 |
---|---|---|
committer | David Robillard <d@drobilla.net> | 2024-11-24 19:03:19 -0500 |
commit | 25593e614eb3ef6a62a603aa4704d9a4ff49364d (patch) | |
tree | 78140112afa4d764aaeb687104b36fdbc688e0ac /src/jack.c | |
parent | 23c175f6b91cfe1a21c7218b27901a600aa5af86 (diff) | |
download | jalv-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.c | 6 |
1 files changed, 1 insertions, 5 deletions
@@ -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) { |