Tone.js/test/helper/Offline2.js
2016-03-04 15:54:39 -05:00

26 lines
No EOL
536 B
JavaScript

define(["Tone/core/Tone", "helper/Offline"], function (Tone, Offline) {
/**
* OFFLINE TESTING
*/
return function(callback, duration, channels){
var offline = new Offline(duration, channels);
/*offline.before(callback.bind(window, undefined, function testFn(cb){
offline.test(cb);
}, function tearDown(cb){
offline.after(cb);
}));*/
offline.before(function(output){
callback(output, function testFn(cb){
offline.test(cb);
}, function(cb){
offline.after(cb);
});
});
offline.run();
};
});