diff options
author | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2017-09-24 21:37:45 +0200 |
---|---|---|
committer | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2017-09-24 21:37:45 +0200 |
commit | bcac433da0ce26bd61d0e8c6ab073d5fcd1699b4 (patch) | |
tree | 6f2d75b6c82a73005fd5cd0fee1cf7c6d3979dfa /include | |
parent | b57eed3fcb70f00b721cff76a093f0f7bc0b425c (diff) | |
download | synthpod-bcac433da0ce26bd61d0e8c6ab073d5fcd1699b4.tar.xz |
prototype reporting of audio device config.
Diffstat (limited to 'include')
-rw-r--r-- | include/synthpod_app.h | 1 | ||||
-rw-r--r-- | include/synthpod_private.h | 6 |
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(®s->synthpod.dsp_profiling, world, map, SYNTHPOD_PREFIX"DSPProfiling"); _register(®s->synthpod.cpus_available, world, map, SYNTHPOD_PREFIX"CPUsAvailable"); _register(®s->synthpod.cpus_used, world, map, SYNTHPOD_PREFIX"CPUsUsed"); + _register(®s->synthpod.period_size, world, map, SYNTHPOD_PREFIX"periodSize"); + _register(®s->synthpod.num_periods, world, map, SYNTHPOD_PREFIX"numPeriods"); _register(®s->synthpod.quit, world, map, SYNTHPOD_PREFIX"quit"); _register(®s->synthpod.system_ports, world, map, SYNTHPOD_PREFIX"systemPorts"); @@ -887,6 +891,8 @@ sp_regs_deinit(reg_t *regs) _unregister(®s->synthpod.dsp_profiling); _unregister(®s->synthpod.cpus_available); _unregister(®s->synthpod.cpus_used); + _unregister(®s->synthpod.period_size); + _unregister(®s->synthpod.num_periods); _unregister(®s->synthpod.quit); _unregister(®s->synthpod.system_ports); |