Mercurial > hg > vamp-live-host
diff 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 |
line wrap: on
line diff
--- a/host/host.cpp Fri Oct 20 15:32:33 2006 +0000 +++ b/host/host.cpp Fri Nov 03 16:40:46 2006 +0000 @@ -11,6 +11,7 @@ #include "system/System.h" #include "Processor.h" +#include "SimpleXMLRuleLoader.h" #include <cmath> #include <cassert> @@ -52,14 +53,11 @@ Processor processor(target); - int count = 0; - if (loadPlugin(processor, "vamp:vamp-aubio:aubiotempo")) ++count; - if (loadPlugin(processor, "vamp:vamp-example-plugins:percussiononsets")) ++count; - if (loadPlugin(processor, "vamp:qm-vamp-plugins:qm-tempotracker")) ++count; - if (loadPlugin(processor, "vamp:qm-vamp-plugins:qm-chromagram")) ++count; - if (loadPlugin(processor, "vamp:vamp-example-plugins:zerocrossing")) ++count; - - std::cerr << count << " plugin(s) loaded" << std::endl; + SimpleXMLRuleLoader loader; + if (!loader.loadFile(processor, "test.xml")) { + std::cerr << "ERROR: Failed to load test XML file" << std::endl; + return 1; + } button->show(); processor.start();