annotate 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
rev   line source
c@90 1
c@90 2 #ifndef PIPER_CLIENT_H
c@90 3 #define PIPER_CLIENT_H
c@90 4
c@90 5 #include <vamp-hostsdk/PluginConfiguration.h>
c@90 6
c@90 7 namespace piper { //!!! change
c@90 8
c@92 9 class PiperPluginStub;
c@90 10
c@92 11 class PiperLoaderInterface
c@90 12 {
c@92 13 public:
c@92 14 virtual
c@92 15 Vamp::Plugin *
c@92 16 load(std::string key, float inputSampleRate, int adapterFlags) = 0;
c@92 17 };
c@92 18
c@92 19 class PiperPluginClientInterface
c@92 20 {
c@92 21 friend class PiperPluginStub;
c@90 22
c@90 23 protected:
c@90 24 virtual
c@90 25 Vamp::Plugin::OutputList
c@92 26 configure(PiperPluginStub *plugin,
c@90 27 Vamp::HostExt::PluginConfiguration config) = 0;
c@90 28
c@90 29 virtual
c@90 30 Vamp::Plugin::FeatureSet
c@92 31 process(PiperPluginStub *plugin,
c@90 32 std::vector<std::vector<float> > inputBuffers,
c@90 33 Vamp::RealTime timestamp) = 0;
c@90 34
c@90 35 virtual Vamp::Plugin::FeatureSet
c@92 36 finish(PiperPluginStub *plugin) = 0;
c@91 37
c@91 38 virtual
c@91 39 void
c@92 40 reset(PiperPluginStub *plugin,
c@91 41 Vamp::HostExt::PluginConfiguration config) = 0;
c@90 42 };
c@90 43
c@90 44 }
c@90 45
c@90 46 #endif