diff options
author | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2017-11-07 19:27:28 +0100 |
---|---|---|
committer | Hanspeter Portner <dev@open-music-kontrollers.ch> | 2017-11-07 19:27:28 +0100 |
commit | 913223ef6eb3de372b5f551567569024f97f4050 (patch) | |
tree | f63d16cd52c84add38b73a9189d871d2f0825b57 /include | |
parent | 41e98c3cb5f5832787fcfae1f5392572a96a4bc5 (diff) | |
download | synthpod-913223ef6eb3de372b5f551567569024f97f4050.tar.xz |
app: load placeholder mod if injection fails.
Diffstat (limited to 'include')
-rw-r--r-- | include/synthpod_private.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/include/synthpod_private.h b/include/synthpod_private.h index f6e39a9f..e6018234 100644 --- a/include/synthpod_private.h +++ b/include/synthpod_private.h @@ -395,6 +395,8 @@ struct _reg_t { reg_item_t source_enabled; reg_item_t sink_enabled; reg_item_t learning; + + reg_item_t placeholder; } synthpod; struct { @@ -680,6 +682,8 @@ sp_regs_init(reg_t *regs, LilvWorld *world, LV2_URID_Map *map) _register(®s->synthpod.sink_enabled, world, map, SYNTHPOD_PREFIX"sinkEnabled"); _register(®s->synthpod.learning, world, map, SYNTHPOD_PREFIX"learning"); + _register(®s->synthpod.placeholder, world, map, SYNTHPOD_PREFIX"placeholder"); + _register(®s->midi.Controller, world, map, LV2_MIDI__Controller); _register(®s->midi.channel, world, map, LV2_MIDI__channel); _register(®s->midi.controller_number, world, map, LV2_MIDI__controllerNumber); @@ -928,6 +932,8 @@ sp_regs_deinit(reg_t *regs) _unregister(®s->synthpod.sink_enabled); _unregister(®s->synthpod.learning); + _unregister(®s->synthpod.placeholder); + _unregister(®s->midi.Controller); _unregister(®s->midi.channel); _unregister(®s->midi.controller_number); |