13
0

Log warning if host does not support midnam/bankpatch extensions

Signed-off-by: Christopher Arndt <chris@chrisarndt.de>
This commit is contained in:
Christopher Arndt 2019-11-10 00:49:18 +01:00
parent d6ed5c2080
commit 8fe978a8e5

View File

@ -310,6 +310,16 @@ instantiate (const LV2_Descriptor* descriptor,
return NULL; 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 */ /* initialize fluid synth */
self->settings = new_fluid_settings (); self->settings = new_fluid_settings ();