comparison vamp-client/PiperClient.h @ 92:21f8af53eaf0

Reorganise some classes
author Chris Cannam <c.cannam@qmul.ac.uk>
date Thu, 13 Oct 2016 12:02:44 +0100
parents c897c9a8daf1
children
comparison
equal deleted inserted replaced
91:c897c9a8daf1 92:21f8af53eaf0
4 4
5 #include <vamp-hostsdk/PluginConfiguration.h> 5 #include <vamp-hostsdk/PluginConfiguration.h>
6 6
7 namespace piper { //!!! change 7 namespace piper { //!!! change
8 8
9 class PiperStubPlugin; 9 class PiperPluginStub;
10 10
11 class PiperStubPluginClientInterface 11 class PiperLoaderInterface
12 { 12 {
13 friend class PiperStubPlugin; 13 public:
14 virtual
15 Vamp::Plugin *
16 load(std::string key, float inputSampleRate, int adapterFlags) = 0;
17 };
18
19 class PiperPluginClientInterface
20 {
21 friend class PiperPluginStub;
14 22
15 protected: 23 protected:
16 virtual 24 virtual
17 Vamp::Plugin::OutputList 25 Vamp::Plugin::OutputList
18 configure(PiperStubPlugin *plugin, 26 configure(PiperPluginStub *plugin,
19 Vamp::HostExt::PluginConfiguration config) = 0; 27 Vamp::HostExt::PluginConfiguration config) = 0;
20 28
21 virtual 29 virtual
22 Vamp::Plugin::FeatureSet 30 Vamp::Plugin::FeatureSet
23 process(PiperStubPlugin *plugin, 31 process(PiperPluginStub *plugin,
24 std::vector<std::vector<float> > inputBuffers, 32 std::vector<std::vector<float> > inputBuffers,
25 Vamp::RealTime timestamp) = 0; 33 Vamp::RealTime timestamp) = 0;
26 34
27 virtual Vamp::Plugin::FeatureSet 35 virtual Vamp::Plugin::FeatureSet
28 finish(PiperStubPlugin *plugin) = 0; 36 finish(PiperPluginStub *plugin) = 0;
29 37
30 virtual 38 virtual
31 void 39 void
32 reset(PiperStubPlugin *plugin, 40 reset(PiperPluginStub *plugin,
33 Vamp::HostExt::PluginConfiguration config) = 0; 41 Vamp::HostExt::PluginConfiguration config) = 0;
34 }; 42 };
35 43
36 } 44 }
37 45