Mercurial > hg > piper-vamp-js
diff 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 |
line wrap: on
line diff
--- a/quick-test.cpp Tue Aug 23 21:46:49 2016 +0100 +++ b/quick-test.cpp Wed Aug 24 10:50:40 2016 +0100 @@ -34,5 +34,10 @@ const char *listResponse = reqFn(listRequest.c_str()); cout << listResponse << endl; freeFn(listResponse); + + string loadRequest = "{\"type\":\"load\",\"content\": {\"pluginKey\":\"vamp-example-plugins:zerocrossing\",\"inputSampleRate\":44100,\"adapterFlags\":[\"AdaptAllSafe\"]}}"; + const char *loadResponse = reqFn(loadRequest.c_str()); + cout << loadResponse << endl; + freeFn(loadResponse); }