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/process.h | |
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/process.h')
-rw-r--r-- | src/process.h | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/src/process.h b/src/process.h index 366d30e..35acd24 100644 --- a/src/process.h +++ b/src/process.h @@ -5,7 +5,9 @@ #define JALV_PROCESS_H #include "attributes.h" +#include "lv2_evbuf.h" #include "types.h" +#include "urids.h" #include <stdbool.h> #include <stdint.h> @@ -15,6 +17,15 @@ JALV_BEGIN_DECLS // Code and data used in the realtime process thread /** + Write a patch:Get message to an event buffer. + + This is used to request an update of plugin state when it has changed or the + UI needs updating for whatever reason. +*/ +int +jalv_write_get_message(LV2_Evbuf_Iterator* iter, const JalvURIDs* urids); + +/** Run the plugin for a block of frames. Applies any pending messages from the UI, runs the plugin instance, and |