Mercurial > hg > vamp-live-host
comparison host/host.cpp @ 3:86914ea77b7b
* start simple xml rule file loading
author | cannam |
---|---|
date | Fri, 03 Nov 2006 16:40:46 +0000 |
parents | 4342352b8ef3 |
children | b046af03c719 |
comparison
equal
deleted
inserted
replaced
2:b8f6bbf172e7 | 3:86914ea77b7b |
---|---|
9 #include <sndfile.h> | 9 #include <sndfile.h> |
10 | 10 |
11 #include "system/System.h" | 11 #include "system/System.h" |
12 | 12 |
13 #include "Processor.h" | 13 #include "Processor.h" |
14 #include "SimpleXMLRuleLoader.h" | |
14 | 15 |
15 #include <cmath> | 16 #include <cmath> |
16 #include <cassert> | 17 #include <cassert> |
17 | 18 |
18 #include <QApplication> | 19 #include <QApplication> |
50 return 1; | 51 return 1; |
51 } | 52 } |
52 | 53 |
53 Processor processor(target); | 54 Processor processor(target); |
54 | 55 |
55 int count = 0; | 56 SimpleXMLRuleLoader loader; |
56 if (loadPlugin(processor, "vamp:vamp-aubio:aubiotempo")) ++count; | 57 if (!loader.loadFile(processor, "test.xml")) { |
57 if (loadPlugin(processor, "vamp:vamp-example-plugins:percussiononsets")) ++count; | 58 std::cerr << "ERROR: Failed to load test XML file" << std::endl; |
58 if (loadPlugin(processor, "vamp:qm-vamp-plugins:qm-tempotracker")) ++count; | 59 return 1; |
59 if (loadPlugin(processor, "vamp:qm-vamp-plugins:qm-chromagram")) ++count; | 60 } |
60 if (loadPlugin(processor, "vamp:vamp-example-plugins:zerocrossing")) ++count; | |
61 | |
62 std::cerr << count << " plugin(s) loaded" << std::endl; | |
63 | 61 |
64 button->show(); | 62 button->show(); |
65 processor.start(); | 63 processor.start(); |
66 | 64 |
67 application.exec(); | 65 application.exec(); |