blob: 81226c6b6dd712c10b07a6dca2098728b4573d5f (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
#include <iostream>
#include "ardour/plugin_manager.h"
#include "ardour/search_paths.h"
#include "plugins_test.h"
#include "test_util.h"
CPPUNIT_TEST_SUITE_REGISTRATION (PluginsTest);
using namespace std;
using namespace ARDOUR;
using namespace PBD;
void
print_plugin_info (PluginInfoPtr pp)
{
cout << "LADSPA Plugin, name " << pp->name
<< ", category " << pp->category
<< ", creator " << pp->creator
<< ", path " << pp->path
<< ", n_inputs " << pp->n_inputs.n_audio ()
<< ", n_outputs " << pp->n_outputs.n_audio ()
<< endl;
}
void
PluginsTest::test ()
{
PluginManager& pm = PluginManager::instance ();
pm.refresh ();
Searchpath ladspa_paths(ladspa_search_path ());
cout << "Number of Ladspa paths found: " << ladspa_paths.size () << endl;
for (vector<std::string>::iterator i = ladspa_paths.begin (); i != ladspa_paths.end(); ++i)
{
cout << "LADSPA search path includes: " << *i << endl;
}
const PluginInfoList& ladspa_list = pm.ladspa_plugin_info ();
cout << "Number of Ladspa plugins found: " << ladspa_list.size () << endl;
for (PluginInfoList::const_iterator i = ladspa_list.begin (); i != ladspa_list.end(); ++i)
{
print_plugin_info (*i);
}
}
|