[SCM] calf/master: + DSSI GUI: create the instantiation 'if' ladder automatically to prevent bugs like the one in 0.0.16.1

js at users.alioth.debian.org js at users.alioth.debian.org
Tue May 7 15:37:58 UTC 2013


The following commit has been merged in the master branch:
commit c3d4b54aeabad314708878afb3c8b59586cc8f99
Author: Krzysztof Foltman <wdev at foltman.com>
Date:   Thu Oct 30 21:02:33 2008 +0000

    + DSSI GUI: create the instantiation 'if' ladder automatically to prevent bugs like the one in 0.0.16.1

diff --git a/src/dssigui.cpp b/src/dssigui.cpp
index 39c41ca..a45b34b 100644
--- a/src/dssigui.cpp
+++ b/src/dssigui.cpp
@@ -193,26 +193,9 @@ struct plugin_proxy: public plugin_proxy_base, public line_graph_iface
 
 plugin_proxy_base *create_plugin_proxy(const char *effect_name)
 {
-    if (!strcmp(effect_name, "reverb"))
-        return new plugin_proxy<reverb_audio_module>();
-    else if (!strcmp(effect_name, "flanger"))
-        return new plugin_proxy<flanger_audio_module>();
-    else if (!strcmp(effect_name, "filter"))
-        return new plugin_proxy<filter_audio_module>();
-    else if (!strcmp(effect_name, "monosynth"))
-        return new plugin_proxy<monosynth_audio_module>();
-    else if (!strcmp(effect_name, "vintagedelay"))
-        return new plugin_proxy<vintage_delay_audio_module>();
-    else if (!strcmp(effect_name, "organ"))
-        return new plugin_proxy<organ_audio_module>();
-    else if (!strcmp(effect_name, "rotaryspeaker"))
-        return new plugin_proxy<rotary_speaker_audio_module>();
-    else if (!strcmp(effect_name, "multichorus"))
-        return new plugin_proxy<multichorus_audio_module>();
-#ifdef ENABLE_EXPERIMENTAL
-#endif
-    else
-        return NULL;
+    #define PER_MODULE_ITEM(name, isSynth, jackname) if (!strcmp(effect_name, jackname)) return new plugin_proxy<name##_audio_module>();
+    #include <calf/modulelist.h>
+    return NULL;
 }
 
 void help(char *argv[])

-- 
calf audio plugins packaging



More information about the pkg-multimedia-commits mailing list