Mercurial > hg > piper-vamp-js
view silvet.cpp @ 37:e3b070ae24eb
Add QM Vamp Plugins build, and separate out object file builds (so we can use the C compiler for .c files). Problem is we are now building in the "client project"'s own directory, so conflicting with its own native .o files -- to be revised.
author | Chris Cannam |
---|---|
date | Fri, 30 Sep 2016 19:06:02 +0100 |
parents | d63f2ade049b |
children | a734a7e976fa |
line wrap: on
line source
#include "VamPipeAdapter.h" #include "VamPipePluginLibrary.h" #include "Silvet.h" using vampipe::VamPipeAdapter; using vampipe::VamPipePluginLibrary; static std::string soname("silvet"); static VamPipeAdapter<Silvet> silvetAdapter(soname); static VamPipePluginLibrary library({ &silvetAdapter }); extern "C" { const char *vampipeRequestJson(const char *request) { return library.requestJson(request); } const char *vampipeProcessRaw(int pluginHandle, const float *const *inputBuffers, int sec, int nsec) { return library.processRaw(pluginHandle, inputBuffers, sec, nsec); } void vampipeFreeJson(const char *json) { return library.freeJson(json); } }