comparison VamPipePluginLibrary.h @ 14:171f92179c3e process-noparse

Rename process -> processRaw
author Chris Cannam
date Wed, 14 Sep 2016 14:41:24 +0100
parents a313ce2577ea
children 0e1909abe921
comparison
equal deleted inserted replaced
13:a313ce2577ea 14:171f92179c3e
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?