diff options
author | Christopher Arndt <chris@chrisarndt.de> | 2019-11-10 00:49:18 +0100 |
---|---|---|
committer | Christopher Arndt <chris@chrisarndt.de> | 2019-11-10 00:49:18 +0100 |
commit | 8fe978a8e513ba4af6d9a2b192d78a36f61174ea (patch) | |
tree | 2b40a8edffe02ec81ff85bf3ab7938ea259c45e9 /libs/plugins | |
parent | d6ed5c20807c906868cf9977ddaf82b696cc4225 (diff) |
Log warning if host does not support midnam/bankpatch extensions
Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
Diffstat (limited to 'libs/plugins')
-rw-r--r-- | libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc b/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc index a3c23dde80..cde370ead5 100644 --- a/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc +++ b/libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc @@ -310,6 +310,16 @@ instantiate (const LV2_Descriptor* descriptor, return NULL; } +#ifdef LV2_EXTENDED + if (!self->midnam) { + lv2_log_warning (&self->logger, "a-fluidsynth.lv2: Host does not support midnam:update\n"); + } + + if (!self->bankpatch) { + lv2_log_warning (&self->logger, "a-fluidsynth.lv2: Host does not support bankpatch:notify\n"); + } +#endif + /* initialize fluid synth */ self->settings = new_fluid_settings (); |