aboutsummaryrefslogtreecommitdiffstats
path: root/src/jalv.c
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2024-12-19 21:30:59 -0500
committerDavid Robillard <d@drobilla.net>2024-12-19 21:30:59 -0500
commitefad9a58a085a87157e7b9e56739b64acf958bfd (patch)
tree0132f319b3d2727864c9d088763aca58af812395 /src/jalv.c
parentb1c955b1e0e3ae6b4b0c74112ae68a2966a92d35 (diff)
downloadjalv-efad9a58a085a87157e7b9e56739b64acf958bfd.tar.gz
jalv-efad9a58a085a87157e7b9e56739b64acf958bfd.tar.bz2
jalv-efad9a58a085a87157e7b9e56739b64acf958bfd.zip
Send events instead of writing to control port buffers in UI
Diffstat (limited to 'src/jalv.c')
-rw-r--r--src/jalv.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/jalv.c b/src/jalv.c
index ff90c7f..71e6fd6 100644
--- a/src/jalv.c
+++ b/src/jalv.c
@@ -326,7 +326,8 @@ jalv_set_control(Jalv* jalv,
const void* body)
{
if (control->type == PORT && type == jalv->forge.Float) {
- jalv->process.controls_buf[control->index] = *(const float*)body;
+ const float value = *(const float*)body;
+ jalv_write_control(jalv->process.ui_to_plugin, control->index, value);
} else if (control->type == PROPERTY &&
jalv->process.control_in != UINT32_MAX) {
LV2_Atom_Forge_Frame frame;