comparison vamp-client/qt/test.cpp @ 208:c67a0a945b6b

Rename PluginStub to PiperVampPlugin and AutoPlugin to PiperAutoPlugin
author Chris Cannam <cannam@all-day-breakfast.com>
date Thu, 09 Feb 2017 13:31:46 +0000
parents 61034472c304
children 60ff32818c30
comparison
equal deleted inserted replaced
207:61034472c304 208:c67a0a945b6b
33 authorization. 33 authorization.
34 */ 34 */
35 35
36 #include "ProcessQtTransport.h" 36 #include "ProcessQtTransport.h"
37 #include "CapnpRRClient.h" 37 #include "CapnpRRClient.h"
38 #include "AutoPlugin.h" 38 #include "PiperAutoPlugin.h"
39 39
40 #include <stdexcept> 40 #include <stdexcept>
41 41
42 using std::cerr; 42 using std::cerr;
43 using std::endl; 43 using std::endl;
105 105
106 (void)plugin->getRemainingFeatures(); 106 (void)plugin->getRemainingFeatures();
107 107
108 delete plugin; 108 delete plugin;
109 109
110 // Let's try a crazy AutoPlugin 110 // Let's try a crazy PiperAutoPlugin
111 111
112 piper_vamp::client::AutoPlugin ap 112 piper_vamp::client::PiperAutoPlugin ap
113 (argv[1], "vamp-example-plugins:zerocrossing", 16, 0, nullptr); 113 (argv[1], "vamp-example-plugins:zerocrossing", 16, 0, nullptr);
114 114
115 if (!ap.isOK()) { 115 if (!ap.isOK()) {
116 cerr << "AutoPlugin creation failed" << endl; 116 cerr << "PiperAutoPlugin creation failed" << endl;
117 } else { 117 } else {
118 if (!ap.initialise(1, 4, 4)) { 118 if (!ap.initialise(1, 4, 4)) {
119 cerr << "initialisation failed" << endl; 119 cerr << "initialisation failed" << endl;
120 } else { 120 } else {
121 vector<float> buf = { 1.0, -1.0, 1.0, -1.0 }; 121 vector<float> buf = { 1.0, -1.0, 1.0, -1.0 };