Mercurial > hg > piper-vamp-js
comparison quick-test.cpp @ 73:8db927152497
Simple test script (and associated fixes) for the JS code
author | Chris Cannam <c.cannam@qmul.ac.uk> |
---|---|
date | Wed, 24 Aug 2016 10:50:40 +0100 |
parents | 4f16ceb503c4 |
children | 2a4685f230ac |
comparison
equal
deleted
inserted
replaced
72:c2a90b45642e | 73:8db927152497 |
---|---|
32 | 32 |
33 string listRequest = "{\"type\": \"list\"}"; | 33 string listRequest = "{\"type\": \"list\"}"; |
34 const char *listResponse = reqFn(listRequest.c_str()); | 34 const char *listResponse = reqFn(listRequest.c_str()); |
35 cout << listResponse << endl; | 35 cout << listResponse << endl; |
36 freeFn(listResponse); | 36 freeFn(listResponse); |
37 | |
38 string loadRequest = "{\"type\":\"load\",\"content\": {\"pluginKey\":\"vamp-example-plugins:zerocrossing\",\"inputSampleRate\":44100,\"adapterFlags\":[\"AdaptAllSafe\"]}}"; | |
39 const char *loadResponse = reqFn(loadRequest.c_str()); | |
40 cout << loadResponse << endl; | |
41 freeFn(loadResponse); | |
37 } | 42 } |
38 | 43 |