aboutsummaryrefslogtreecommitdiff
path: root/props.lv2
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-06-14 23:10:31 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-06-14 23:10:31 +0200
commit4808eccd047f7b444d488cbed4e7b9fd44a42af1 (patch)
tree5ea77c2dfbc41d80cc646d5f13d488fa1acb4eef /props.lv2
parenta833f44043df169fbebe45e7787d01ed92a28ab0 (diff)
parent7c88c8968d732a8b5f68361b3e3cb38fc8e9e483 (diff)
downloadsherlock.lv2-4808eccd047f7b444d488cbed4e7b9fd44a42af1.tar.xz
Merge commit '7c88c8968d732a8b5f68361b3e3cb38fc8e9e483'
Diffstat (limited to 'props.lv2')
-rw-r--r--props.lv2/props.h12
1 files changed, 10 insertions, 2 deletions
diff --git a/props.lv2/props.h b/props.lv2/props.h
index ebbc3ec..d147e04 100644
--- a/props.lv2/props.h
+++ b/props.lv2/props.h
@@ -24,6 +24,7 @@ extern "C" {
#include <stdlib.h>
#include <stdatomic.h>
+#include <stdio.h>
#include <lv2/lv2plug.in/ns/lv2core/lv2.h>
#include <lv2/lv2plug.in/ns/ext/urid/urid.h>
@@ -792,13 +793,17 @@ _props_reg(props_t *props, LV2_Atom_Forge *forge, uint32_t frames, props_impl_t
if(def->scale_points)
{
+ LV2_Atom_Forge_Frame tuple_frame;
+ if(ref)
+ ref = lv2_atom_forge_key(forge, props->urid.lv2_scale_point);
+ if(ref)
+ ref = lv2_atom_forge_tuple(forge, &tuple_frame);
+
for(const props_scale_point_t *sp = def->scale_points; sp->label; sp++)
{
LV2_Atom_Forge_Frame scale_point_frame;
if(ref)
- ref = lv2_atom_forge_key(forge, props->urid.lv2_scale_point);
- if(ref)
ref = lv2_atom_forge_object(forge, &scale_point_frame, 0, 0);
{
if(ref)
@@ -814,6 +819,9 @@ _props_reg(props_t *props, LV2_Atom_Forge *forge, uint32_t frames, props_impl_t
if(ref)
lv2_atom_forge_pop(forge, &scale_point_frame);
}
+
+ if(ref)
+ lv2_atom_forge_pop(forge, &tuple_frame);
}
}
if(ref)