c@27: c@27: #include "PiperAdapter.h" c@27: #include "PiperPluginLibrary.h" c@27: c@27: #include "Silvet.h" c@27: c@27: using piper::PiperAdapter; c@27: using piper::PiperPluginLibrary; c@27: c@27: static std::string soname("silvet"); c@27: c@27: static PiperAdapter silvetAdapter(soname); c@27: c@27: static PiperPluginLibrary library({ c@27: &silvetAdapter c@27: }); c@27: c@27: extern "C" { c@27: c@27: const char *piperRequestJson(const char *request) { c@27: return library.requestJson(request); c@27: } c@27: c@27: const char *piperProcessRaw(int handle, c@27: const float *const *inputBuffers, c@27: int sec, c@27: int nsec) { c@27: return library.processRaw(handle, inputBuffers, sec, nsec); c@27: } c@27: c@27: void piperFreeJson(const char *json) { c@27: return library.freeJson(json); c@27: } c@27: c@27: } c@27: