Mercurial > hg > piper-vamp-js
comparison 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 |
comparison
equal
deleted
inserted
replaced
3:6a792d8838c9 | 4:3a5a6535d50d |
---|---|
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 |