comparison 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
comparison
equal deleted inserted replaced
81:5e6ff69b4209 85:1a9ba1c08f9e
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 *processRaw(int handle, const float *const *inputBuffers,
62 int sec, int nsec) {
63 return strdup(processRawImpl(handle, inputBuffers, sec, nsec).c_str());
64 }
65
61 void freeJson(const char *json) { 66 void freeJson(const char *json) {
62 free(const_cast<char *>(json)); 67 free(const_cast<char *>(json));
63 } 68 }
64 69
65 private: 70 private:
66 std::string requestJsonImpl(std::string req); 71 std::string requestJsonImpl(std::string req);
72 std::string processRawImpl(int, const float *const *, int, int);
67 73
68 RequestOrResponse readRequest(std::string req); 74 RequestOrResponse readRequest(std::string req);
69 std::string writeResponse(const RequestOrResponse &resp) const; 75 std::string writeResponse(const RequestOrResponse &resp) const;
70 76
71 //!!! 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?