aboutsummaryrefslogtreecommitdiff
path: root/app/synthpod_app_mod.c
diff options
context:
space:
mode:
authorGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2019-04-06 22:28:53 +0200
committerGravatar Hanspeter Portner <dev@open-music-kontrollers.ch>2019-04-06 22:32:37 +0200
commit113c350e26d27a0034579fc9aa05bdf417567c99 (patch)
tree4dbcb88ae7cb89792494c28d16f01282c87b57fd /app/synthpod_app_mod.c
parent356657c10fb934bb20c0a2ab61a85449f6f53ce5 (diff)
downloadsynthpod-113c350e26d27a0034579fc9aa05bdf417567c99.zip
synthpod-113c350e26d27a0034579fc9aa05bdf417567c99.tar.gz
synthpod-113c350e26d27a0034579fc9aa05bdf417567c99.tar.bz2
synthpod-113c350e26d27a0034579fc9aa05bdf417567c99.tar.xz
idisp: disable when canvas:graph parameter preset.
Diffstat (limited to 'app/synthpod_app_mod.c')
-rw-r--r--app/synthpod_app_mod.c17
1 files changed, 15 insertions, 2 deletions
diff --git a/app/synthpod_app_mod.c b/app/synthpod_app_mod.c
index 5c331ed..93d04c6 100644
--- a/app/synthpod_app_mod.c
+++ b/app/synthpod_app_mod.c
@@ -703,8 +703,21 @@ _sp_app_mod_add(sp_app_t *app, const char *uri, LV2_URID urn)
LV2_WORKER__interface);
mod->opts.iface = lilv_instance_get_extension_data(mod->inst,
LV2_OPTIONS__interface);
- mod->idisp.iface = lilv_instance_get_extension_data(mod->inst,
- LV2_INLINEDISPLAY__interface);
+ const bool has_ro_canvas_graph = lilv_world_ask(app->world,
+ lilv_plugin_get_uri(mod->plug), app->regs.patch.readable.node,
+ app->regs.canvas.graph.node);
+ const bool has_rw_canvas_graph = lilv_world_ask(app->world,
+ lilv_plugin_get_uri(mod->plug), app->regs.patch.writable.node,
+ app->regs.canvas.graph.node);
+ if(has_ro_canvas_graph || has_rw_canvas_graph)
+ {
+ //sp_app_log_note(app, "%s: detected canvas:graph parameter\n", __func__);
+ }
+ else
+ {
+ mod->idisp.iface = lilv_instance_get_extension_data(mod->inst,
+ LV2_INLINEDISPLAY__interface);
+ }
mod->state.iface = lilv_instance_get_extension_data(mod->inst,
LV2_STATE__interface);
mod->system_ports = lilv_plugin_has_feature(plug, app->regs.synthpod.system_ports.node);