Mercurial > hg > piper-vamp-js
comparison VamPipePluginLibrary.h @ 83:a6ab5fd80eb7
Rename process -> processRaw
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Wed, 14 Sep 2016 14:41:24 +0100 |
parents | 5bd5d48a1c21 |
children | 0e1909abe921 |
comparison
equal
deleted
inserted
replaced
82:5bd5d48a1c21 | 83:a6ab5fd80eb7 |
---|---|
56 | 56 |
57 const char *requestJson(const char *request) { | 57 const char *requestJson(const char *request) { |
58 return strdup(requestJsonImpl(request).c_str()); | 58 return strdup(requestJsonImpl(request).c_str()); |
59 } | 59 } |
60 | 60 |
61 const char *process(int handle, const float *const *inputBuffers, | 61 const char *processRaw(int handle, const float *const *inputBuffers, |
62 int sec, int nsec) { | 62 int sec, int nsec) { |
63 return strdup(processImpl(handle, inputBuffers, sec, nsec).c_str()); | 63 return strdup(processRawImpl(handle, inputBuffers, sec, nsec).c_str()); |
64 } | 64 } |
65 | 65 |
66 void freeJson(const char *json) { | 66 void freeJson(const char *json) { |
67 free(const_cast<char *>(json)); | 67 free(const_cast<char *>(json)); |
68 } | 68 } |
69 | 69 |
70 private: | 70 private: |
71 std::string requestJsonImpl(std::string req); | 71 std::string requestJsonImpl(std::string req); |
72 std::string processImpl(int, const float *const *, int, int); | 72 std::string processRawImpl(int, const float *const *, int, int); |
73 | 73 |
74 RequestOrResponse readRequest(std::string req); | 74 RequestOrResponse readRequest(std::string req); |
75 std::string writeResponse(const RequestOrResponse &resp) const; | 75 std::string writeResponse(const RequestOrResponse &resp) const; |
76 | 76 |
77 //!!! no type for this in RequestResponse.h in vamp sdk, should there be? | 77 //!!! no type for this in RequestResponse.h in vamp sdk, should there be? |