Mercurial > hg > piper-cpp
diff 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 |
line wrap: on
line diff
--- a/vamp-client/stub.h Tue Oct 11 17:08:31 2016 +0100 +++ b/vamp-client/stub.h Wed Oct 12 11:59:57 2016 +0100 @@ -21,7 +21,7 @@ virtual Vamp::Plugin::FeatureSet process(PiperStubPlugin *plugin, - const float *const *inputBuffers, + std::vector<std::vector<float> > inputBuffers, Vamp::RealTime timestamp) = 0; virtual Vamp::Plugin::FeatureSet @@ -189,7 +189,15 @@ throw std::logic_error("Plugin has already been disposed of"); } - return m_client->process(this, inputBuffers, timestamp); + //!!! ew + std::vector<std::vector<float> > vecbuf; + for (int c = 0; c < m_config.channelCount; ++c) { + vecbuf.push_back(std::vector<float> + (inputBuffers[c], + inputBuffers[c] + m_config.blockSize)); + } + + return m_client->process(this, vecbuf, timestamp); } virtual FeatureSet getRemainingFeatures() {