[SCM] calf/master: + DSSI: do not set run_synth callback if the plugin doesn't handle MIDI

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:39:01 UTC 2013


The following commit has been merged in the master branch:
commit 4a57cf4a92beaddb11b03936ce3be43971593b8e
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Thu Jan 22 23:02:24 2009 +0000

    + DSSI: do not set run_synth callback if the plugin doesn't handle MIDI

diff --git a/src/calf/ladspa_wrap.h b/src/calf/ladspa_wrap.h
index f313ed1..250b556 100644
--- a/src/calf/ladspa_wrap.h
+++ b/src/calf/ladspa_wrap.h
@@ -289,7 +289,8 @@ struct ladspa_wrapper
         dssi_descriptor.configure = cb_configure;
         dssi_descriptor.get_program = cb_get_program;
         dssi_descriptor.select_program = cb_select_program;
-        dssi_descriptor.run_synth = cb_run_synth;
+        if (Module::support_midi)
+            dssi_descriptor.run_synth = cb_run_synth;
         
         presets = new std::vector<plugin_preset>;
         preset_descs = new std::vector<DSSI_Program_Descriptor>;

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list