Mercurial > hg > piper-vamp-js
diff VamPipePluginLibrary.h @ 82:5bd5d48a1c21
Introduce "raw" process call in which the input is not serialised
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Fri, 09 Sep 2016 15:41:35 +0100 |
parents | 5e6ff69b4209 |
children | 171f92179c3e |
line wrap: on
line diff
--- a/VamPipePluginLibrary.h Thu Sep 08 15:27:48 2016 +0100 +++ b/VamPipePluginLibrary.h Fri Sep 09 15:41:35 2016 +0100 @@ -58,12 +58,18 @@ return strdup(requestJsonImpl(request).c_str()); } + const char *process(int handle, const float *const *inputBuffers, + int sec, int nsec) { + return strdup(processImpl(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 processImpl(int, const float *const *, int, int); RequestOrResponse readRequest(std::string req); std::string writeResponse(const RequestOrResponse &resp) const;