Tone.js/test/helper/Offline2.js

18 lines
377 B
JavaScript
Raw Normal View History

2016-03-03 06:36:46 +00:00
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.run();
};
});