(native) Linux VST support from LinuxDSP
[ardour.git] / libs / ardour / lxvst_plugin.cc
1 /*
2     Copyright (C) 2004 Paul Davis
3
4     This program is free software; you can redistribute it and/or modify
5     it under the terms of the GNU General Public License as published by
6     the Free Software Foundation; either version 2 of the License, or
7     (at your option) any later version.
8
9     This program is distributed in the hope that it will be useful,
10     but WITHOUT ANY WARRANTY; without even the implied warranty of
11     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12     GNU General Public License for more details.
13
14     You should have received a copy of the GNU General Public License
15     along with this program; if not, write to the Free Software
16     Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
17
18 */
19
20 /**********************************************************************/
21 /*Native linuxVST (LXVST) variant of vst_plugin.cc etc                */
22 /**********************************************************************/
23
24
25 #include <algorithm>
26 #include <vector>
27 #include <string>
28 #include <cctype>
29
30 #include <cstdlib>
31 #include <cstdio> // so libraptor doesn't complain
32 #include <cmath>
33 #include <dirent.h>
34 #include <cstring> // for memmove
35 #include <sys/stat.h>
36 #include <cerrno>
37
38 #include <glibmm/miscutils.h>
39
40 #include <lrdf.h>
41
42 /*Include for the new native vst engine - vstfx.h*/
43
44 #include <ardour/vstfx.h>
45
46 #include "pbd/compose.h"
47 #include "pbd/error.h"
48 #include "pbd/pathscanner.h"
49 #include "pbd/xml++.h"
50
51 #include "ardour/session.h"
52 #include "ardour/audioengine.h"
53 #include "ardour/filesystem_paths.h"
54 #include "ardour/lxvst_plugin.h"
55 #include "ardour/buffer_set.h"
56 #include "ardour/audio_buffer.h"
57 #include "ardour/midi_buffer.h"
58
59 #include "pbd/stl_delete.h"
60
61 #include "i18n.h"
62 #include <locale.h>
63
64 using namespace std;
65 using namespace ARDOUR;
66 using namespace PBD;
67 using std::min;
68 using std::max;
69
70 LXVSTPlugin::LXVSTPlugin (AudioEngine& e, Session& session, VSTFXHandle* h)
71         : Plugin (e, session)
72 {
73         handle = h;
74
75         /*Instantiate the plugin and return a VSTFX* */
76
77         if ((_vstfx = vstfx_instantiate (handle, Session::lxvst_callback, this)) == 0)
78         {
79                 throw failed_constructor();
80         }
81
82         /*Call into vstfx to get a pointer to the instance of the VST plugin*/
83
84         _plugin = _vstfx->plugin;
85         _plugin->user = this;
86
87         /* set rate and blocksize */
88
89         _plugin->dispatcher (_plugin, effSetSampleRate, 0, 0, NULL, (float) session.frame_rate());
90         
91         _plugin->dispatcher (_plugin, effSetBlockSize, 0, session.get_block_size(), NULL, 0.0f);
92
93         /* set program to zero */
94
95         _plugin->dispatcher (_plugin, effSetProgram, 0, 0, NULL, 0.0f);
96
97         // Plugin::setup_controls ();
98 }
99
100 LXVSTPlugin::LXVSTPlugin (const LXVSTPlugin &other)
101         : Plugin (other)
102 {
103         handle = other.handle;
104
105         if ((_vstfx = vstfx_instantiate (handle, Session::lxvst_callback, this)) == 0)
106         {
107                 throw failed_constructor();
108         }
109         _plugin = _vstfx->plugin;
110
111         // Plugin::setup_controls ();
112 }
113
114 LXVSTPlugin::~LXVSTPlugin ()
115 {
116         deactivate ();
117         vstfx_close (_vstfx);
118 }
119
120 int LXVSTPlugin::set_block_size (pframes_t nframes)
121 {
122         deactivate ();
123         _plugin->dispatcher (_plugin, effSetBlockSize, 0, nframes, NULL, 0.0f);
124         activate ();
125     return 0;
126 }
127
128 float LXVSTPlugin::default_value (uint32_t port)
129 {
130         return 0;
131 }
132
133 void LXVSTPlugin::set_parameter (uint32_t which, float val)
134 {
135         _plugin->setParameter (_plugin, which, val);
136         
137         if (_vstfx->want_program == -1 && _vstfx->want_chunk == 0)
138         {
139                 /* Heinous hack: Plugin::set_parameter below updates the `modified' status of the
140                    current preset, but if _vstfx->want_program is not -1 then there is a preset
141                    setup pending or in progress, which we don't want any `modified' updates
142                    to happen for.  So we only do this if _vstfx->want_program is -1.
143                 */
144                 Plugin::set_parameter (which, val);
145         }
146 }
147
148 float LXVSTPlugin::get_parameter (uint32_t which) const
149 {
150         return _plugin->getParameter (_plugin, which);
151
152 }
153
154 uint32_t LXVSTPlugin::nth_parameter (uint32_t n, bool& ok) const
155 {
156         ok = true;
157         return n;
158 }
159
160 /** Get VST chunk as base64-encoded data.
161  *  @param single true for single program, false for all programs.
162  *  @return 0-terminated base64-encoded data; must be passed to g_free () by caller.
163  */
164 gchar *LXVSTPlugin::get_chunk (bool single) const
165 {
166         guchar* data;
167         int32_t data_size = _plugin->dispatcher (_plugin, 23 /* effGetChunk */, single ? 1 : 0, 0, &data, 0);
168         if (data_size == 0)
169         {
170                 return 0;
171         }
172
173         return g_base64_encode (data, data_size);
174 }
175
176 /** Set VST chunk from base64-encoded data.
177  *  @param 0-terminated base64-encoded data.
178  *  @param single true for single program, false for all programs.
179  *  @return 0 on success, non-0 on failure
180  */
181 int LXVSTPlugin::set_chunk (gchar const * data, bool single)
182 {
183         gsize size = 0;
184         guchar* raw_data = g_base64_decode (data, &size);
185         int const r = _plugin->dispatcher (_plugin, 24 /* effSetChunk */, single ? 1 : 0, size, raw_data, 0);
186         g_free (raw_data);
187         return r;
188 }
189
190 void LXVSTPlugin::add_state (XMLNode* root) const
191 {
192         LocaleGuard lg (X_("POSIX"));
193
194         if (_vstfx->current_program != -1)
195         {
196                 char buf[32];
197                 snprintf (buf, sizeof (buf), "%d", _vstfx->current_program);
198                 root->add_property ("current-program", buf);
199         }
200
201         if (_plugin->flags & 32 /* effFlagsProgramsChunks */)
202         {
203                 gchar* data = get_chunk (false);
204                 if (data == 0)
205                 {
206                         return;
207                 }
208
209                 /* store information */
210
211                 XMLNode* chunk_node = new XMLNode (X_("chunk"));
212
213                 chunk_node->add_content (data);
214                 g_free (data);
215
216                 root->add_child_nocopy (*chunk_node);
217
218         }
219         else
220         {
221                 XMLNode* parameters = new XMLNode ("parameters");
222
223                 for (int32_t n = 0; n < _plugin->numParams; ++n)
224                 {
225                         char index[64];
226                         char val[32];
227                         snprintf (index, sizeof (index), "param_%d", n);
228                         snprintf (val, sizeof (val), "%.12g", _plugin->getParameter (_plugin, n));
229                         parameters->add_property (index, val);
230                 }
231
232                 root->add_child_nocopy (*parameters);
233         }
234 }
235
236 int LXVSTPlugin::set_state (const XMLNode& node, int version)
237 {
238         LocaleGuard lg (X_("POSIX"));
239
240         if (node.name() != state_node_name())
241         {
242                 error << _("Bad node sent to VSTPlugin::set_state") << endmsg;
243                 return 0;
244         }
245
246         const XMLProperty* prop;
247
248         if ((prop = node.property ("current-program")) != 0)
249         {
250                 _vstfx->want_program = atoi (prop->value().c_str());
251         }
252
253         XMLNode* child;
254         int ret = -1;
255
256         if ((child = find_named_node (node, X_("chunk"))) != 0)
257         {
258                 XMLPropertyList::const_iterator i;
259                 XMLNodeList::const_iterator n;
260                 int ret = -1;
261
262                 for (n = child->children ().begin (); n != child->children ().end (); ++n)
263                 {
264                         if ((*n)->is_content ())
265                         {
266                                 /* XXX: this may be dubious for the same reasons that we delay
267                                    execution of load_preset.
268                                 */
269                                 ret = set_chunk ((*n)->content().c_str(), false);
270                         }
271                 }
272
273         }
274         else if ((child = find_named_node (node, X_("parameters"))) != 0)
275         {
276                 XMLPropertyList::const_iterator i;
277
278                 for (i = child->properties().begin(); i != child->properties().end(); ++i)
279                 {
280                         int32_t param;
281                         float val;
282
283                         sscanf ((*i)->name().c_str(), "param-%d", &param); //This was param_%d (from vst_plugin) which caused all sorts of odd behaviour
284                         sscanf ((*i)->value().c_str(), "%f", &val);
285
286                         _plugin->setParameter (_plugin, param, val);
287                 }
288
289                 /* program number is not knowable */
290
291                 _vstfx->current_program = -1;
292
293                 ret = 0;
294         }
295
296         Plugin::set_state (node, version);
297         return ret;
298 }
299
300 int LXVSTPlugin::get_parameter_descriptor (uint32_t which, ParameterDescriptor& desc) const
301 {
302         VstParameterProperties prop;
303
304         desc.min_unbound = false;
305         desc.max_unbound = false;
306         prop.flags = 0;
307
308         /* old style */
309
310         char label[64];
311         label[0] = '\0';
312
313         _plugin->dispatcher (_plugin, effGetParamName, which, 0, label, 0);
314
315         desc.label = label;
316         desc.integer_step = false;
317         desc.lower = 0.0f;
318         desc.upper = 1.0f;
319         desc.step = 0.01f;
320         desc.smallstep = 0.005f;
321         desc.largestep = 0.1f;
322         desc.toggled = false;
323         desc.logarithmic = false;
324         desc.sr_dependent = false;
325         
326         return 0;
327 }
328
329 bool LXVSTPlugin::load_preset (PresetRecord r)
330 {
331         bool s;
332
333         if (r.user)
334         {
335                 s = load_user_preset (r);
336         }
337         else
338         {
339                 s = load_plugin_preset (r);
340         }
341
342         if (s)
343         {
344                 Plugin::load_preset (r);
345         }
346
347         return s;
348 }
349
350 bool LXVSTPlugin::load_plugin_preset (PresetRecord r)
351 {
352         /* This is a plugin-provided preset.
353            We can't dispatch directly here; too many plugins expects only one GUI thread.
354         */
355
356         /* Extract the index of this preset from the URI */
357         int id;
358         int index;
359         int const p = sscanf (r.uri.c_str(), "VST:%d:%d", &id, &index);
360         assert (p == 2);
361
362         _vstfx->want_program = index;
363         return true;
364 }
365
366 bool LXVSTPlugin::load_user_preset (PresetRecord r)
367 {
368         /* This is a user preset; we load it, and this code also knows about the
369            non-direct-dispatch thing.
370         */
371
372         boost::shared_ptr<XMLTree> t (presets_tree ());
373         if (t == 0)
374         {
375                 return false;
376         }
377
378         XMLNode* root = t->root ();
379
380         for (XMLNodeList::const_iterator i = root->children().begin(); i != root->children().end(); ++i)
381         {
382                 XMLProperty* uri = (*i)->property (X_("uri"));
383                 XMLProperty* label = (*i)->property (X_("label"));
384
385                 assert (uri);
386                 assert (label);
387
388                 if (label->value() != r.label)
389                 {
390                         continue;
391                 }
392
393                 if (_plugin->flags & 32 /* effFlagsProgramsChunks */)
394                 {
395
396                         /* Load a user preset chunk from our XML file and send it via a circuitous route to the plugin */
397
398                         if (_vstfx->wanted_chunk)
399                         {
400                                 g_free (_vstfx->wanted_chunk);
401                         }
402
403                         for (XMLNodeList::const_iterator j = (*i)->children().begin(); j != (*i)->children().end(); ++j)
404                         {
405                                 if ((*j)->is_content ())
406                                 {
407                                         /* we can't dispatch directly here; too many plugins expect only one GUI thread */
408                                         gsize size = 0;
409                                         guchar* raw_data = g_base64_decode ((*j)->content().c_str(), &size);
410                                         _vstfx->wanted_chunk = raw_data;
411                                         _vstfx->wanted_chunk_size = size;
412                                         _vstfx->want_chunk = 1;
413                                         return true;
414                                 }
415                         }
416
417                         return false;
418
419                 }
420                 else
421                 {
422                         for (XMLNodeList::const_iterator j = (*i)->children().begin(); j != (*i)->children().end(); ++j)
423                         {
424                                 if ((*j)->name() == X_("Parameter"))
425                                 {
426                                                 XMLProperty* index = (*j)->property (X_("index"));
427                                                 XMLProperty* value = (*j)->property (X_("value"));
428
429                                                 assert (index);
430                                                 assert (value);
431
432                                                 set_parameter (atoi (index->value().c_str()), atof (value->value().c_str ()));
433                                 }
434                         }
435                         return true;
436                 }
437         }
438         return false;
439 }
440
441 string LXVSTPlugin::do_save_preset (string name)
442 {
443         boost::shared_ptr<XMLTree> t (presets_tree ());
444         if (t == 0)
445         {
446                 return "";
447         }
448
449         XMLNode* p = 0;
450         /* XXX: use of _presets.size() + 1 for the unique ID here is dubious at best */
451         string const uri = string_compose (X_("VST:%1:%2"), unique_id (), _presets.size() + 1);
452
453         if (_plugin->flags & 32 /* effFlagsProgramsChunks */)
454         {
455
456                 p = new XMLNode (X_("ChunkPreset"));
457                 p->add_property (X_("uri"), uri);
458                 p->add_property (X_("label"), name);
459                 gchar* data = get_chunk (true);
460                 p->add_content (string (data));
461                 g_free (data);
462
463         }
464         else
465         {
466
467                 p = new XMLNode (X_("Preset"));
468                 p->add_property (X_("uri"), uri);
469                 p->add_property (X_("label"), name);
470
471                 for (uint32_t i = 0; i < parameter_count(); ++i)
472                 {
473                         if (parameter_is_input (i))
474                         {
475                                 XMLNode* c = new XMLNode (X_("Parameter"));
476                                 c->add_property (X_("index"), string_compose ("%1", i));
477                                 c->add_property (X_("value"), string_compose ("%1", get_parameter (i)));
478                                 p->add_child_nocopy (*c);
479                         }
480                 }
481         }
482
483         t->root()->add_child_nocopy (*p);
484
485         sys::path f = ARDOUR::user_config_directory ();
486         f /= "presets";
487         f /= presets_file ();
488
489         t->write (f.to_string ());
490         return uri;
491 }
492
493 void LXVSTPlugin::do_remove_preset (string name)
494 {
495         boost::shared_ptr<XMLTree> t (presets_tree ());
496         if (t == 0)
497         {
498                 return;
499         }
500
501         t->root()->remove_nodes_and_delete (X_("label"), name);
502
503         sys::path f = ARDOUR::user_config_directory ();
504         f /= "presets";
505         f /= presets_file ();
506
507         t->write (f.to_string ());
508 }
509
510 string LXVSTPlugin::describe_parameter (Evoral::Parameter param)
511 {
512         char name[64] = "Unkown";
513         _plugin->dispatcher (_plugin, effGetParamName, param.id(), 0, name, 0);
514         return name;
515 }
516
517 framecnt_t LXVSTPlugin::signal_latency () const
518 {
519         if (_user_latency)
520         {
521                 return _user_latency;
522         }
523
524 #ifdef VESTIGE_HEADER
525         return *((framecnt_t *) (((char *) &_plugin->flags) + 12)); /* initialDelay */
526 #else
527         return _plugin->initial_delay;
528 #endif
529 }
530
531 set<Evoral::Parameter> LXVSTPlugin::automatable () const
532 {
533         set<Evoral::Parameter> ret;
534
535         for (uint32_t i = 0; i < parameter_count(); ++i)
536         {
537                 ret.insert (ret.end(), Evoral::Parameter(PluginAutomation, 0, i));
538         }
539
540         return ret;
541 }
542
543 int LXVSTPlugin::connect_and_run (BufferSet& bufs,
544                 ChanMapping in_map, ChanMapping out_map,
545                 pframes_t nframes, framecnt_t offset)
546 {
547         Plugin::connect_and_run (bufs, in_map, out_map, nframes, offset);
548
549         float *ins[_plugin->numInputs];
550         float *outs[_plugin->numOutputs];
551         int32_t i;
552
553         const uint32_t nbufs = bufs.count().n_audio();
554
555         int in_index = 0;
556         for (i = 0; i < (int32_t) _plugin->numInputs; ++i)
557         {
558                 ins[i] = bufs.get_audio(min((uint32_t) in_index, nbufs - 1)).data() + offset;
559                 in_index++;
560         }
561
562         int out_index = 0;
563         for (i = 0; i < (int32_t) _plugin->numOutputs; ++i)
564         {
565                 outs[i] = bufs.get_audio(min((uint32_t) out_index, nbufs - 1)).data() + offset;
566                 out_index++;
567         }
568
569         if (bufs.count().n_midi() > 0)
570         {
571                 VstEvents* v = bufs.get_vst_midi (0);
572                 _plugin->dispatcher (_plugin, effProcessEvents, 0, 0, v, 0);
573         }
574
575         /* we already know it can support processReplacing */
576         
577 #ifdef LXVST_32BIT
578         _plugin->processReplacing (_plugin, ins, outs, nframes);
579 #endif
580
581 #if defined LXVST_64BIT && defined VESTIGE_HEADER
582
583         /*Vestige doesn't work for 64Bit - some of the AEffect struct member types
584         appear not to be correct which throws the data alignment.  We have two choices
585         
586         1) Fix Vestige - preferable from a technical standpoint, but perhaps
587         not viable without affecting its 'clean room' status
588         
589         2) Correct for the alignment error - a bit of a kludge, but it can work,
590         assuming the following data types / sizes on x86-64
591         
592         char            1Byte  : Byte aligned
593         int                     4Bytes : 4Byte aligned
594         long            8Bytes : 8Byte aligned
595         pointers        8Bytes : 8Byte aligned
596         
597         This gives an offset of 8 Bytes - inclusive of padding
598         to translate to the correct address for processReplacing*/
599
600         ((AEffect*)(((char*)(_plugin)) + 8))->processReplacing(_plugin, ins, outs, nframes);
601         
602 #elif defined LXVST_64BIT
603
604         _plugin->processReplacing(_plugin, ins, outs, nframes);
605         
606 #endif
607
608         return 0;
609 }
610
611 void LXVSTPlugin::deactivate ()
612 {
613         _plugin->dispatcher (_plugin, effMainsChanged, 0, 0, NULL, 0.0f);
614 }
615
616 void LXVSTPlugin::activate ()
617 {
618         _plugin->dispatcher (_plugin, effMainsChanged, 0, 1, NULL, 0.0f);
619 }
620
621 string LXVSTPlugin::unique_id() const
622 {
623         char buf[32];
624         
625 #if defined LXVST_64BIT && defined VESTIGE_HEADER
626
627         /*The vestige header appears not to have correct data
628         alignment in AEffect struct for 64Bit, possibly due
629         to incorrect data types - see previous comments*/
630                 
631         snprintf (buf, sizeof (buf), "%d", *((int32_t*) &((AEffect*)(((char*)(_plugin)) + 12))->unused_id));
632
633 #elif defined LXVST_32BIT && defined VESTIGE_HEADER
634         
635         snprintf (buf, sizeof (buf), "%d", *((int32_t*) &_plugin->unused_id));
636         
637 #else
638         
639         snprintf (buf, sizeof (buf), "%d", _plugin->uniqueID);
640
641 #endif
642         
643         return string (buf);
644 }
645
646
647 const char * LXVSTPlugin::name () const
648 {
649         return handle->name;
650 }
651
652 const char * LXVSTPlugin::maker () const
653 {
654         return _info->creator.c_str();
655 }
656
657 const char * LXVSTPlugin::label () const
658 {
659         return handle->name;
660 }
661
662 uint32_t LXVSTPlugin::parameter_count() const
663 {
664         return _plugin->numParams;
665 }
666
667 bool LXVSTPlugin::has_editor () const
668 {
669         return _plugin->flags & effFlagsHasEditor;
670 }
671
672 void LXVSTPlugin::print_parameter (uint32_t param, char *buf, uint32_t len) const
673 {
674         char *first_nonws;
675
676         _plugin->dispatcher (_plugin, 7 /* effGetParamDisplay */, param, 0, buf, 0);
677
678         if (buf[0] == '\0')
679         {
680                 return;
681         }
682
683         first_nonws = buf;
684         while (*first_nonws && isspace (*first_nonws))
685         {
686                 first_nonws++;
687         }
688         if (*first_nonws == '\0')
689         {
690                 return;
691         }
692
693         memmove (buf, first_nonws, strlen (buf) - (first_nonws - buf) + 1);
694 }
695
696 PluginPtr LXVSTPluginInfo::load (Session& session)
697 {
698         try {
699                 PluginPtr plugin;
700
701                 if (Config->get_use_lxvst())
702                 {
703                         VSTFXHandle* handle;
704
705                         handle = vstfx_load(path.c_str());
706
707                         if (handle == NULL)
708                         {
709                                 error << string_compose(_("LXVST: cannot load module from \"%1\""), path) << endmsg;
710                         }
711                         else
712                         {
713                                 plugin.reset (new LXVSTPlugin (session.engine(), session, handle));
714                         }
715                 }
716                 else
717                 {
718                         error << _("You asked ardour to not use any LXVST plugins") << endmsg;
719                         return PluginPtr ((Plugin*) 0);
720                 }
721
722                 plugin->set_info(PluginInfoPtr(new LXVSTPluginInfo(*this)));
723                 return plugin;
724         }
725
726         catch (failed_constructor &err)
727         {
728                 return PluginPtr ((Plugin*) 0);
729         }
730 }
731
732 void LXVSTPlugin::find_presets ()
733 {
734         /* Built-in presets */
735
736         int const vst_version = _plugin->dispatcher (_plugin, effGetVstVersion, 0, 0, NULL, 0);
737         for (int i = 0; i < _plugin->numPrograms; ++i)
738         {
739                 PresetRecord r (string_compose (X_("LXVST:%1:%2"), unique_id (), i), "", false);
740
741                 if (vst_version >= 2)
742                 {
743                         char buf[256];
744                         if (_plugin->dispatcher (_plugin, 29, i, 0, buf, 0) == 1)
745                         {
746                                 r.label = buf;
747                         }
748                         else
749                         {
750                                 r.label = string_compose (_("Preset %1"), i);
751                         }
752                 }
753                 else
754                 {
755                         r.label = string_compose (_("Preset %1"), i);
756                 }
757
758                 _presets.insert (make_pair (r.uri, r));
759         }
760
761         /* User presets from our XML file */
762
763         boost::shared_ptr<XMLTree> t (presets_tree ());
764
765         if (t)
766         {
767                 XMLNode* root = t->root ();
768                 for (XMLNodeList::const_iterator i = root->children().begin(); i != root->children().end(); ++i)
769                 {
770                         XMLProperty* uri = (*i)->property (X_("uri"));
771                         XMLProperty* label = (*i)->property (X_("label"));
772
773                         assert (uri);
774                         assert (label);
775
776                         PresetRecord r (uri->value(), label->value(), true);
777                         _presets.insert (make_pair (r.uri, r));
778                 }
779         }
780 }
781
782 /** @return XMLTree with our user presets; could be a new one if no existing
783  *  one was found, or 0 if one was present but badly-formatted.
784  */
785 XMLTree * LXVSTPlugin::presets_tree () const
786 {
787         XMLTree* t = new XMLTree;
788
789         sys::path p = ARDOUR::user_config_directory ();
790         p /= "presets";
791
792         if (!is_directory (p))
793         {
794                 create_directory (p);
795         }
796
797         p /= presets_file ();
798
799         if (!exists (p))
800         {
801                 t->set_root (new XMLNode (X_("LXVSTPresets")));
802                 return t;
803         }
804
805         t->set_filename (p.to_string ());
806         if (!t->read ())
807         {
808                 delete t;
809                 return 0;
810         }
811
812         return t;
813 }
814
815 /** @return Index of the first user preset in our lists */
816 int LXVSTPlugin::first_user_preset_index () const
817 {
818         return _plugin->numPrograms;
819 }
820
821 string LXVSTPlugin::presets_file () const
822 {
823         return string_compose ("lxvst-%1", unique_id ());
824 }
825
826 LXVSTPluginInfo::LXVSTPluginInfo()
827 {
828        type = ARDOUR::LXVST;
829 }
830