comparison vamp-client/stub.h @ 84:db9a6ab618bc

Client builds; does not run
author Chris Cannam <c.cannam@qmul.ac.uk>
date Wed, 12 Oct 2016 11:59:57 +0100
parents d9e85a65d45b
children bf2e6f939f9f
comparison
equal deleted inserted replaced
83:154e94ea84d4 84:db9a6ab618bc
19 Vamp::HostExt::PluginConfiguration config) = 0; 19 Vamp::HostExt::PluginConfiguration config) = 0;
20 20
21 virtual 21 virtual
22 Vamp::Plugin::FeatureSet 22 Vamp::Plugin::FeatureSet
23 process(PiperStubPlugin *plugin, 23 process(PiperStubPlugin *plugin,
24 const float *const *inputBuffers, 24 std::vector<std::vector<float> > inputBuffers,
25 Vamp::RealTime timestamp) = 0; 25 Vamp::RealTime timestamp) = 0;
26 26
27 virtual Vamp::Plugin::FeatureSet 27 virtual Vamp::Plugin::FeatureSet
28 finish(PiperStubPlugin *plugin) = 0; 28 finish(PiperStubPlugin *plugin) = 0;
29 }; 29 };
187 } 187 }
188 if (m_state == Finished) { 188 if (m_state == Finished) {
189 throw std::logic_error("Plugin has already been disposed of"); 189 throw std::logic_error("Plugin has already been disposed of");
190 } 190 }
191 191
192 return m_client->process(this, inputBuffers, timestamp); 192 //!!! ew
193 std::vector<std::vector<float> > vecbuf;
194 for (int c = 0; c < m_config.channelCount; ++c) {
195 vecbuf.push_back(std::vector<float>
196 (inputBuffers[c],
197 inputBuffers[c] + m_config.blockSize));
198 }
199
200 return m_client->process(this, vecbuf, timestamp);
193 } 201 }
194 202
195 virtual FeatureSet getRemainingFeatures() { 203 virtual FeatureSet getRemainingFeatures() {
196 204
197 if (m_state == Loaded) { 205 if (m_state == Loaded) {