Mercurial > hg > piper-vamp-js
comparison PiperPluginLibrary.h @ 46:b780e56eebb4
Update to match current namespaces etc in piper-cpp
author | Chris Cannam |
---|---|
date | Thu, 13 Oct 2016 18:13:55 +0100 |
parents | 90bf9d9f9c95 |
children | cedcaa258e22 |
comparison
equal
deleted
inserted
replaced
45:124f6d2fbaa2 | 46:b780e56eebb4 |
---|---|
34 | 34 |
35 #ifndef PIPER_PLUGIN_LIBRARY_H | 35 #ifndef PIPER_PLUGIN_LIBRARY_H |
36 #define PIPER_PLUGIN_LIBRARY_H | 36 #define PIPER_PLUGIN_LIBRARY_H |
37 | 37 |
38 #include "vamp-support/CountingPluginHandleMapper.h" | 38 #include "vamp-support/CountingPluginHandleMapper.h" |
39 | 39 #include "vamp-support/PluginStaticData.h" |
40 #include <vamp-hostsdk/PluginStaticData.h> | 40 #include "vamp-support/RequestResponse.h" |
41 #include <vamp-hostsdk/RequestResponse.h> | |
42 | 41 |
43 #include <vector> | 42 #include <vector> |
44 #include <string> | 43 #include <string> |
45 #include <cstring> | 44 #include <cstring> |
46 | 45 |
47 namespace piper { | 46 namespace piper_vamp_js { |
48 | 47 |
49 class PiperAdapterInterface; | 48 class PiperAdapterInterface; |
50 | 49 |
51 class PiperPluginLibrary | 50 class PiperPluginLibrary |
52 { | 51 { |
68 | 67 |
69 private: | 68 private: |
70 std::string requestJsonImpl(std::string req); | 69 std::string requestJsonImpl(std::string req); |
71 std::string processRawImpl(int, const float *const *, int, int); | 70 std::string processRawImpl(int, const float *const *, int, int); |
72 | 71 |
73 Vamp::HostExt::ListResponse listPluginData() const; | 72 piper_vamp::ListResponse listPluginData() const; |
74 Vamp::HostExt::LoadResponse loadPlugin(Vamp::HostExt::LoadRequest r, | 73 piper_vamp::LoadResponse loadPlugin(piper_vamp::LoadRequest r, |
75 std::string &err) const; | 74 std::string &err) const; |
76 Vamp::HostExt::ConfigurationResponse configurePlugin(Vamp::HostExt:: | 75 piper_vamp::ConfigurationResponse configurePlugin(piper_vamp::ConfigurationRequest r, |
77 ConfigurationRequest r, | 76 std::string &err) |
78 std::string &err) | |
79 const; | 77 const; |
80 | 78 |
81 // map from pluginKey -> adapter | 79 // map from pluginKey -> adapter |
82 std::map<std::string, PiperAdapterInterface *> m_adapters; | 80 std::map<std::string, PiperAdapterInterface *> m_adapters; |
83 CountingPluginHandleMapper m_mapper; | 81 piper_vamp::CountingPluginHandleMapper m_mapper; |
84 bool m_useBase64; | 82 bool m_useBase64; |
85 }; | 83 }; |
86 | 84 |
87 } | 85 } |
88 | 86 |