aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-06-20 15:36:49 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2017-06-20 15:36:49 +0200
commitc890305707ed33fa5146769bf0b1de8408ec5981 (patch)
treeac9eb64802042d8702045563dd84004f879aa8ed /include
parent35fd0314182d0d9ed414862370b46cfea221069b (diff)
downloadsynthpod-c890305707ed33fa5146769bf0b1de8408ec5981.tar.xz
api: prototype support for port connection gains.
Diffstat (limited to 'include')
-rw-r--r--include/synthpod_private.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/synthpod_private.h b/include/synthpod_private.h
index 13ec5a1f..c9776745 100644
--- a/include/synthpod_private.h
+++ b/include/synthpod_private.h
@@ -233,6 +233,7 @@ struct _reg_t {
struct {
reg_item_t sample_rate;
+ reg_item_t gain;
} param;
struct {
@@ -517,6 +518,7 @@ sp_regs_init(reg_t *regs, LilvWorld *world, LV2_URID_Map *map)
_register(&regs->core.designation, world, map, LV2_CORE__designation);
_register(&regs->param.sample_rate, world, map, LV2_PARAMETERS__sampleRate);
+ _register(&regs->param.gain, world, map, LV2_PARAMETERS__gain);
_register(&regs->bufsz.nominal_block_length, world, map, LV2_BUF_SIZE_PREFIX "nominalBlockLength");
_register(&regs->bufsz.max_block_length, world, map, LV2_BUF_SIZE__maxBlockLength);
@@ -756,6 +758,7 @@ sp_regs_deinit(reg_t *regs)
_unregister(&regs->core.designation);
_unregister(&regs->param.sample_rate);
+ _unregister(&regs->param.gain);
_unregister(&regs->bufsz.nominal_block_length);
_unregister(&regs->bufsz.max_block_length);