Mercurial > hg > piper-cpp
comparison vamp-client/PluginStub.h @ 97:427c4c725085
Bring in the Request/Response classes that were in the Vamp SDK, adding them to vamp-support in here instead
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Thu, 13 Oct 2016 18:05:35 +0100 |
parents | a660dca988f8 |
children | cd438188e3f9 |
comparison
equal
deleted
inserted
replaced
96:215c9fb6b7a4 | 97:427c4c725085 |
---|---|
2 #ifndef PIPER_PLUGIN_STUB_H | 2 #ifndef PIPER_PLUGIN_STUB_H |
3 #define PIPER_PLUGIN_STUB_H | 3 #define PIPER_PLUGIN_STUB_H |
4 | 4 |
5 #include <vamp-hostsdk/Plugin.h> | 5 #include <vamp-hostsdk/Plugin.h> |
6 #include <vamp-hostsdk/PluginLoader.h> | 6 #include <vamp-hostsdk/PluginLoader.h> |
7 #include <vamp-hostsdk/PluginStaticData.h> | 7 |
8 #include <vamp-hostsdk/PluginConfiguration.h> | 8 #include "vamp-support/PluginStaticData.h" |
9 #include "vamp-support/PluginConfiguration.h" | |
9 | 10 |
10 #include <cstdint> | 11 #include <cstdint> |
11 | 12 |
12 #include "PluginClient.h" | 13 #include "PluginClient.h" |
13 | 14 |
14 namespace piper { | 15 namespace piper_vamp { |
15 namespace vampclient { | 16 namespace client { |
16 | 17 |
17 class PluginStub : public Vamp::Plugin | 18 class PluginStub : public Vamp::Plugin |
18 { | 19 { |
19 enum State { | 20 enum State { |
20 Loaded, Configured, Finished | 21 Loaded, Configured, Finished |
23 public: | 24 public: |
24 PluginStub(PluginClient *client, | 25 PluginStub(PluginClient *client, |
25 std::string pluginKey, | 26 std::string pluginKey, |
26 float inputSampleRate, | 27 float inputSampleRate, |
27 int adapterFlags, | 28 int adapterFlags, |
28 Vamp::HostExt::PluginStaticData psd, | 29 PluginStaticData psd, |
29 Vamp::HostExt::PluginConfiguration defaultConfig) : | 30 PluginConfiguration defaultConfig) : |
30 Plugin(inputSampleRate), | 31 Plugin(inputSampleRate), |
31 m_client(client), | 32 m_client(client), |
32 m_key(pluginKey), | 33 m_key(pluginKey), |
33 m_adapterFlags(adapterFlags), | 34 m_adapterFlags(adapterFlags), |
34 m_state(Loaded), | 35 m_state(Loaded), |
228 private: | 229 private: |
229 PluginClient *m_client; | 230 PluginClient *m_client; |
230 std::string m_key; | 231 std::string m_key; |
231 int m_adapterFlags; | 232 int m_adapterFlags; |
232 State m_state; | 233 State m_state; |
233 Vamp::HostExt::PluginStaticData m_psd; | 234 PluginStaticData m_psd; |
234 OutputList m_outputs; | 235 OutputList m_outputs; |
235 Vamp::HostExt::PluginConfiguration m_defaultConfig; | 236 PluginConfiguration m_defaultConfig; |
236 Vamp::HostExt::PluginConfiguration m_config; | 237 PluginConfiguration m_config; |
237 }; | 238 }; |
238 | 239 |
239 } | 240 } |
240 } | 241 } |
241 | 242 |