Mercurial > hg > piper-vamp-js-builds
diff silvet/silvet.cpp @ 27:cae97e9dfa72
Import a couple of builds
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Thu, 10 Nov 2016 11:55:22 +0000 |
parents | |
children | 95ac23360324 |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/silvet/silvet.cpp Thu Nov 10 11:55:22 2016 +0000 @@ -0,0 +1,36 @@ + +#include "PiperAdapter.h" +#include "PiperPluginLibrary.h" + +#include "Silvet.h" + +using piper::PiperAdapter; +using piper::PiperPluginLibrary; + +static std::string soname("silvet"); + +static PiperAdapter<Silvet> silvetAdapter(soname); + +static PiperPluginLibrary library({ + &silvetAdapter +}); + +extern "C" { + +const char *piperRequestJson(const char *request) { + return library.requestJson(request); +} + +const char *piperProcessRaw(int handle, + const float *const *inputBuffers, + int sec, + int nsec) { + return library.processRaw(handle, inputBuffers, sec, nsec); +} + +void piperFreeJson(const char *json) { + return library.freeJson(json); +} + +} +