Mercurial > hg > piper-vamp-js
diff quick-test.cpp @ 4:3a5a6535d50d
Simple test script (and associated fixes) for the JS code
author | Chris Cannam |
---|---|
date | Wed, 24 Aug 2016 10:50:40 +0100 |
parents | 4d6e60a7c80e |
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); }