Mercurial > hg > piper-vamp-js-builds
comparison silvet/silvet.cpp @ 39:4b7e9d3a2528
Tidy
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Fri, 11 Nov 2016 17:25:35 +0000 |
parents | 77cc9d0d19ff |
children | ac94242cf562 |
comparison
equal
deleted
inserted
replaced
37:e7e0e634af46 | 39:4b7e9d3a2528 |
---|---|
1 /* -*- c-basic-offset: 4 indent-tabs-mode: nil -*- vi:set ts=8 sts=4 sw=4: */ | |
1 | 2 |
2 #include "PiperAdapter.h" | 3 #include "PiperExport.h" |
3 #include "PiperPluginLibrary.h" | |
4 | |
5 #include "Silvet.h" | 4 #include "Silvet.h" |
6 | |
7 using piper_vamp_js::PiperAdapter; | |
8 using piper_vamp_js::PiperPluginLibrary; | |
9 | 5 |
10 static std::string soname("silvet"); | 6 static std::string soname("silvet"); |
11 | 7 |
12 static PiperAdapter<Silvet> silvetAdapter(soname); | 8 static piper_vamp_js::PiperAdapter<Silvet> silvetAdapter(soname); |
9 static piper_vamp_js::PiperPluginLibrary library({ &silvetAdapter }); | |
13 | 10 |
14 static PiperPluginLibrary library({ | 11 PIPER_EXPORT_LIBRARY(library); |
15 &silvetAdapter | |
16 }); | |
17 | 12 |
18 extern "C" { | |
19 | |
20 const char *piperRequestJson(const char *request) { | |
21 return library.requestJson(request); | |
22 } | |
23 | |
24 const char *piperProcessRaw(int handle, | |
25 const float *const *inputBuffers, | |
26 int sec, | |
27 int nsec) { | |
28 return library.processRaw(handle, inputBuffers, sec, nsec); | |
29 } | |
30 | |
31 void piperFreeJson(const char *json) { | |
32 return library.freeJson(json); | |
33 } | |
34 | |
35 } | |
36 |