aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2020-09-26 11:34:00 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2020-09-26 11:34:00 +0200
commitba21e185655d2fc7237d8a5e6c9462bc701ceb45 (patch)
tree2a45059b029f6251183ddd696cedefc813306084
parent29bf482d056c51ea4459d701d8a570b172429762 (diff)
downloadprops.lv2-ba21e185655d2fc7237d8a5e6c9462bc701ceb45.tar.xz
notify downstream (e.g. UI) about changes params.
-rw-r--r--VERSION2
-rw-r--r--props.h8
2 files changed, 9 insertions, 1 deletions
diff --git a/VERSION b/VERSION
index 39e1a8e..e670da3 100644
--- a/VERSION
+++ b/VERSION
@@ -1 +1 @@
-0.1.135
+0.1.137
diff --git a/props.h b/props.h
index 48e6d3a..0572bcb 100644
--- a/props.h
+++ b/props.h
@@ -734,6 +734,10 @@ props_advance(props_t *props, LV2_Atom_Forge *forge, uint32_t frames,
_props_impl_set(props, impl, value->type, value->size,
LV2_ATOM_BODY_CONST(value));
+ // send on (e.g. to UI)
+ if(*ref && !impl->def->hidden)
+ *ref = _props_patch_set(props, forge, frames, impl, sequence_num);
+
const props_def_t *def = impl->def;
if(def->event_cb)
def->event_cb(props->data, frames, impl);
@@ -800,6 +804,10 @@ props_advance(props_t *props, LV2_Atom_Forge *forge, uint32_t frames,
_props_impl_set(props, impl, value->type, value->size,
LV2_ATOM_BODY_CONST(value));
+ // send on (e.g. to UI)
+ if(*ref && !impl->def->hidden)
+ *ref = _props_patch_set(props, forge, frames, impl, sequence_num);
+
const props_def_t *def = impl->def;
if(def->event_cb)
def->event_cb(props->data, frames, impl);