~ubuntu-branches/ubuntu/lucid/ardour/lucid-proposed

« back to all changes in this revision

Viewing changes to libs/ardour/plugin.cc

  • Committer: Bazaar Package Importer
  • Author(s): Free Ekanayaka
  • Date: 2008-02-07 20:51:55 UTC
  • mfrom: (1.1.13 upstream)
  • Revision ID: james.westby@ubuntu.com-20080207205155-xzi5lq5s2o1okvx8
Tags: 1:2.3.1-1
* New upstream release
* debian/control:
   - build-depend on libfftw3-dev (Closes: #463803)
   - added Homepage, Vcs-Svn, Vcs-Browser
* debian/patches
   - dropped 50-soundtouch.patch (fixed upstream)
   - updated 80_ardourino.patch
   - dropped unused patches from source package

Show diffs side-by-side

added added

removed removed

Lines of Context:
46
46
#include <ardour/audio_unit.h>
47
47
#endif
48
48
 
 
49
#ifdef HAVE_SLV2
 
50
#include <ardour/lv2_plugin.h>
 
51
#endif
 
52
 
49
53
#include <pbd/stl_delete.h>
50
54
 
51
55
#include "i18n.h"
314
318
        case ARDOUR::LADSPA:
315
319
                plugs = mgr->ladspa_plugin_info();
316
320
                break;
 
321
        
 
322
#ifdef HAVE_SLV2
 
323
        case ARDOUR::LV2:
 
324
                plugs = mgr->lv2_plugin_info();
 
325
                break;
 
326
#endif
317
327
 
318
328
#ifdef VST_SUPPORT
319
329
        case ARDOUR::VST:
338
348
                        return (*i)->load (session);
339
349
                }
340
350
        }
 
351
 
 
352
#ifdef VST_SUPPORT
 
353
        /* hmm, we didn't find it. could be because in older versions of Ardour.
 
354
           we used to store the name of a VST plugin, not its unique ID. so try
 
355
           again.
 
356
        */
 
357
 
 
358
        for (i = plugs.begin(); i != plugs.end(); ++i) {
 
359
                if (identifier == (*i)->name){
 
360
                        return (*i)->load (session);
 
361
                }
 
362
        }
 
363
#endif
341
364
        
342
365
        return PluginPtr ((Plugin*) 0);
343
366
}