woscope returns context object

pull/6/head
Chad von Nau 2017-01-23 16:45:51 -08:00
rodzic f80777c14e
commit 5573461476
1 zmienionych plików z 3 dodań i 3 usunięć

Wyświetl plik

@ -81,18 +81,18 @@ function woscope(config) {
progressLoop();
axhr(audioUrl, function(buffer) {
callback();
ctx.audioData = prepareAudioData(ctx, buffer);
ctx.loaded = true;
callback(ctx);
loop();
},
config.error,
function (e) {
ctx.progress = e.total ? e.loaded / e.total : 1.0;
console.log('progress: ' + e.loaded + ' / ' + e.total);
});
return ctx;
}
function initAudioCtx(errorCallback) {