aboutsummaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorHanspeter Portner <dev@open-music-kontrollers.ch>2017-09-24 21:37:45 +0200
committerHanspeter Portner <dev@open-music-kontrollers.ch>2017-09-24 21:37:45 +0200
commitbcac433da0ce26bd61d0e8c6ab073d5fcd1699b4 (patch)
tree6f2d75b6c82a73005fd5cd0fee1cf7c6d3979dfa /include
parentb57eed3fcb70f00b721cff76a093f0f7bc0b425c (diff)
downloadsynthpod-bcac433da0ce26bd61d0e8c6ab073d5fcd1699b4.tar.xz
prototype reporting of audio device config.
Diffstat (limited to 'include')
-rw-r--r--include/synthpod_app.h1
-rw-r--r--include/synthpod_private.h6
2 files changed, 7 insertions, 0 deletions
diff --git a/include/synthpod_app.h b/include/synthpod_app.h
index 6f1bfaf8..778323f0 100644
--- a/include/synthpod_app.h
+++ b/include/synthpod_app.h
@@ -84,6 +84,7 @@ struct _sp_app_driver_t {
uint32_t min_block_size;
uint32_t max_block_size;
uint32_t seq_size;
+ uint32_t num_periods;
LV2_URID_Map *map;
LV2_URID_Unmap *unmap;
diff --git a/include/synthpod_private.h b/include/synthpod_private.h
index 04bd1c86..ae60796d 100644
--- a/include/synthpod_private.h
+++ b/include/synthpod_private.h
@@ -363,6 +363,8 @@ struct _reg_t {
reg_item_t dsp_profiling;
reg_item_t cpus_available;
reg_item_t cpus_used;
+ reg_item_t period_size;
+ reg_item_t num_periods;
reg_item_t quit;
reg_item_t system_ports;
@@ -643,6 +645,8 @@ sp_regs_init(reg_t *regs, LilvWorld *world, LV2_URID_Map *map)
_register(&regs->synthpod.dsp_profiling, world, map, SYNTHPOD_PREFIX"DSPProfiling");
_register(&regs->synthpod.cpus_available, world, map, SYNTHPOD_PREFIX"CPUsAvailable");
_register(&regs->synthpod.cpus_used, world, map, SYNTHPOD_PREFIX"CPUsUsed");
+ _register(&regs->synthpod.period_size, world, map, SYNTHPOD_PREFIX"periodSize");
+ _register(&regs->synthpod.num_periods, world, map, SYNTHPOD_PREFIX"numPeriods");
_register(&regs->synthpod.quit, world, map, SYNTHPOD_PREFIX"quit");
_register(&regs->synthpod.system_ports, world, map, SYNTHPOD_PREFIX"systemPorts");
@@ -887,6 +891,8 @@ sp_regs_deinit(reg_t *regs)
_unregister(&regs->synthpod.dsp_profiling);
_unregister(&regs->synthpod.cpus_available);
_unregister(&regs->synthpod.cpus_used);
+ _unregister(&regs->synthpod.period_size);
+ _unregister(&regs->synthpod.num_periods);
_unregister(&regs->synthpod.quit);
_unregister(&regs->synthpod.system_ports);