ardour
plugins_test.cc
Go to the documentation of this file.
1 #include <iostream>
2 
4 #include "ardour/search_paths.h"
5 
6 #include "plugins_test.h"
7 #include "test_util.h"
8 
10 
11 using namespace std;
12 using namespace ARDOUR;
13 using namespace PBD;
14 
15 void
17 {
18  cout << "LADSPA Plugin, name " << pp->name
19  << ", category " << pp->category
20  << ", creator " << pp->creator
21  << ", path " << pp->path
22  << ", n_inputs " << pp->n_inputs.n_audio ()
23  << ", n_outputs " << pp->n_outputs.n_audio ()
24  << endl;
25 
26 }
27 
28 void
30 {
31  PluginManager& pm = PluginManager::instance ();
32 
33  pm.refresh ();
34 
35  Searchpath ladspa_paths(ladspa_search_path ());
36 
37  cout << "Number of Ladspa paths found: " << ladspa_paths.size () << endl;
38 
39  for (vector<std::string>::iterator i = ladspa_paths.begin (); i != ladspa_paths.end(); ++i)
40  {
41  cout << "LADSPA search path includes: " << *i << endl;
42  }
43 
44  PluginInfoList& ladspa_list = pm.ladspa_plugin_info ();
45 
46  cout << "Number of Ladspa plugins found: " << ladspa_list.size () << endl;
47 
48  for (PluginInfoList::iterator i = ladspa_list.begin (); i != ladspa_list.end(); ++i)
49  {
50  print_plugin_info (*i);
51  }
52 
53 
54 }
std::string category
Definition: plugin.h:60
LIBARDOUR_API PBD::Searchpath ladspa_search_path()
Definition: search_paths.cc:89
std::string path
Definition: plugin.h:62
uint32_t n_audio() const
Definition: chan_count.h:63
Definition: Beats.hpp:239
void print_plugin_info(PluginInfoPtr pp)
Definition: plugins_test.cc:16
ChanCount n_outputs
Definition: plugin.h:64
ARDOUR::PluginInfoList & ladspa_plugin_info()
Definition: amp.h:29
CPPUNIT_TEST_SUITE_REGISTRATION(PluginsTest)
ChanCount n_inputs
Definition: plugin.h:63
Definition: debug.h:30
std::string creator
Definition: plugin.h:61
std::list< PluginInfoPtr > PluginInfoList
Definition: plugin.h:90
std::string name
Definition: plugin.h:59
void refresh(bool cache_only=false)