Commit a1c0707c authored by Xiaowu Zhang's avatar Xiaowu Zhang

add saved buffer in control gadget

parent 74cd8e73
......@@ -87,6 +87,7 @@
return promiseReadFile.then(function (response) {
return new Promise(function (resolve, reject) {
gadget.audioCtx.decodeAudioData(response, function (buffer) {
gadget.buffer = buffer;
resolve(buffer);
}, function () {
reject(-1);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment