2 * Example audio modules - LADSPA/DSSI/LV2 wrapper instantiation
4 * Copyright (C) 2001-2008 Krzysztof Foltman
6 * This program is free software; you can redistribute it and/or
7 * modify it under the terms of the GNU Lesser General Public
8 * License as published by the Free Software Foundation; either
9 * version 2 of the License, or (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
14 * Lesser General Public License for more details.
16 * You should have received a copy of the GNU Lesser General
17 * Public License along with this program; if not, write to the
18 * Free Software Foundation, Inc., 59 Temple Place, Suite 330,
19 * Boston, MA 02111-1307, USA.
22 #include <calf/ladspa_wrap.h>
23 #include <calf/lv2wrap.h>
24 #include <calf/modules.h>
25 #include <calf/modules_dev.h>
26 #include <calf/modules_small.h>
28 using namespace calf_plugins
;
31 template<class Module
>
32 LADSPA_Descriptor ladspa_wrapper
<Module
>::descriptor
;
34 template<class Module
>
35 LADSPA_Descriptor ladspa_wrapper
<Module
>::descriptor_for_dssi
;
39 template<class Module
>
40 DSSI_Descriptor ladspa_wrapper
<Module
>::dssi_descriptor
;
42 template<class Module
>
43 DSSI_Program_Descriptor ladspa_wrapper
<Module
>::dssi_default_program
;
45 template<class Module
>
46 std::vector
<plugin_preset
> *ladspa_wrapper
<Module
>::presets
;
48 template<class Module
>
49 std::vector
<DSSI_Program_Descriptor
> *ladspa_wrapper
<Module
>::preset_descs
;
54 // instantiate descriptor templates
55 template<class Module
> LV2_Descriptor
calf_plugins::lv2_wrapper
<Module
>::descriptor
;
56 template<class Module
> LV2_Calf_Descriptor
calf_plugins::lv2_wrapper
<Module
>::calf_descriptor
;
57 template<class Module
> LV2MessageContext
calf_plugins::lv2_wrapper
<Module
>::message_context
;
61 const LV2_Descriptor
*lv2_descriptor(uint32_t index
)
63 #define PER_MODULE_ITEM(name, isSynth, jackname) if (!(index--)) return &lv2_wrapper<name##_audio_module>::get().descriptor;
64 #include <calf/modulelist.h>
65 #ifdef ENABLE_EXPERIMENTAL
66 return lv2_small_descriptor(index
);
79 const LADSPA_Descriptor
*ladspa_descriptor(unsigned long Index
)
81 #define PER_MODULE_ITEM(name, isSynth, jackname) if (!isSynth && !(Index--)) return &ladspa_wrapper<name##_audio_module>::get().descriptor;
82 #include <calf/modulelist.h>
91 const DSSI_Descriptor
*dssi_descriptor(unsigned long Index
)
93 #define PER_MODULE_ITEM(name, isSynth, jackname) if (!(Index--)) return &calf_plugins::ladspa_wrapper<name##_audio_module>::get().dssi_descriptor;
94 #include <calf/modulelist.h>