From 8fe978a8e513ba4af6d9a2b192d78a36f61174ea Mon Sep 17 00:00:00 2001 From: Christopher Arndt Date: Sun, 10 Nov 2019 00:49:18 +0100 Subject: [PATCH] Log warning if host does not support midnam/bankpatch extensions Signed-off-by: Christopher Arndt --- libs/plugins/a-fluidsynth.lv2/a-fluidsynth.cc | 10 ++++++++++ 1 file changed, 10 insertions(+) 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 ();