annotate 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
rev   line source
c@27 1
c@27 2 #include "PiperAdapter.h"
c@27 3 #include "PiperPluginLibrary.h"
c@27 4
c@27 5 #include "Silvet.h"
c@27 6
c@27 7 using piper::PiperAdapter;
c@27 8 using piper::PiperPluginLibrary;
c@27 9
c@27 10 static std::string soname("silvet");
c@27 11
c@27 12 static PiperAdapter<Silvet> silvetAdapter(soname);
c@27 13
c@27 14 static PiperPluginLibrary library({
c@27 15 &silvetAdapter
c@27 16 });
c@27 17
c@27 18 extern "C" {
c@27 19
c@27 20 const char *piperRequestJson(const char *request) {
c@27 21 return library.requestJson(request);
c@27 22 }
c@27 23
c@27 24 const char *piperProcessRaw(int handle,
c@27 25 const float *const *inputBuffers,
c@27 26 int sec,
c@27 27 int nsec) {
c@27 28 return library.processRaw(handle, inputBuffers, sec, nsec);
c@27 29 }
c@27 30
c@27 31 void piperFreeJson(const char *json) {
c@27 32 return library.freeJson(json);
c@27 33 }
c@27 34
c@27 35 }
c@27 36