aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-09-22 23:19:59 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2017-09-22 23:19:59 +0200
commitafb8d1cbaea4ef4d2bd7de73a10731ea1d8de276 (patch)
tree31fa7b4dc4726fc2f55b4b574b8cc844794114f4 /include
parent70701b0e4717e78d225d06369355ac8dc3990a2b (diff)
downloadsynthpod-afb8d1cbaea4ef4d2bd7de73a10731ea1d8de276.tar.xz
discriminate between src/snk automations.
Diffstat (limited to 'include')
-rw-r--r--include/synthpod_private.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/synthpod_private.h b/include/synthpod_private.h
index 1be70eac..45f67d7f 100644
--- a/include/synthpod_private.h
+++ b/include/synthpod_private.h
@@ -387,6 +387,9 @@ struct _reg_t {
reg_item_t source_max;
reg_item_t sink_min;
reg_item_t sink_max;
+
+ reg_item_t source_enabled;
+ reg_item_t sink_enabled;
} synthpod;
struct {
@@ -664,6 +667,9 @@ sp_regs_init(reg_t *regs, LilvWorld *world, LV2_URID_Map *map)
_register(&regs->synthpod.sink_min, world, map, SYNTHPOD_PREFIX"sinkMinimum");
_register(&regs->synthpod.sink_max, world, map, SYNTHPOD_PREFIX"sinkMaximum");
+ _register(&regs->synthpod.source_enabled, world, map, SYNTHPOD_PREFIX"sourceEnabled");
+ _register(&regs->synthpod.sink_enabled, world, map, SYNTHPOD_PREFIX"sinkEnabled");
+
_register(&regs->midi.Controller, world, map, LV2_MIDI__Controller);
_register(&regs->midi.channel, world, map, LV2_MIDI__channel);
_register(&regs->midi.controller_number, world, map, LV2_MIDI__controllerNumber);
@@ -904,6 +910,9 @@ sp_regs_deinit(reg_t *regs)
_unregister(&regs->synthpod.sink_min);
_unregister(&regs->synthpod.sink_max);
+ _unregister(&regs->synthpod.source_enabled);
+ _unregister(&regs->synthpod.sink_enabled);
+
_unregister(&regs->midi.Controller);
_unregister(&regs->midi.channel);
_unregister(&regs->midi.controller_number);