Mercurial > hg > piper-vamp-js
diff VamPipePluginLibrary.h @ 85:1a9ba1c08f9e
Merge from branch process-noparse
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Wed, 14 Sep 2016 14:43:37 +0100 |
parents | a6ab5fd80eb7 |
children | 0e1909abe921 |
line wrap: on
line diff
--- a/VamPipePluginLibrary.h Thu Sep 08 15:27:48 2016 +0100 +++ b/VamPipePluginLibrary.h Wed Sep 14 14:43:37 2016 +0100 @@ -58,12 +58,18 @@ return strdup(requestJsonImpl(request).c_str()); } + const char *processRaw(int handle, const float *const *inputBuffers, + int sec, int nsec) { + return strdup(processRawImpl(handle, inputBuffers, sec, nsec).c_str()); + } + void freeJson(const char *json) { free(const_cast<char *>(json)); } private: std::string requestJsonImpl(std::string req); + std::string processRawImpl(int, const float *const *, int, int); RequestOrResponse readRequest(std::string req); std::string writeResponse(const RequestOrResponse &resp) const;