aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2016-06-14 22:15:11 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2016-06-14 22:15:11 +0200
commit7c88c8968d732a8b5f68361b3e3cb38fc8e9e483 (patch)
tree9a24a9ae6a675d694e2be4a43af7c7a2c63cea26
parent3274e30f202a3c4ca8a1c17181d0f6124334acdd (diff)
downloadprops.lv2-7c88c8968d732a8b5f68361b3e3cb38fc8e9e483.tar.xz
pack lv2:scalePoints into atom:Tuple.
-rw-r--r--props.h11
1 files changed, 9 insertions, 2 deletions
diff --git a/props.h b/props.h
index 0a92342..d147e04 100644
--- a/props.h
+++ b/props.h
@@ -793,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)
@@ -815,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)