Tone.js/test/helper/Offline2.js

26 lines
536 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);
2016-03-04 20:54:39 +00:00
/*offline.before(callback.bind(window, undefined, function testFn(cb){
2016-03-03 06:36:46 +00:00
offline.test(cb);
}, function tearDown(cb){
offline.after(cb);
2016-03-04 20:54:39 +00:00
}));*/
offline.before(function(output){
callback(output, function testFn(cb){
offline.test(cb);
}, function(cb){
offline.after(cb);
});
});
2016-03-03 06:36:46 +00:00
offline.run();
};
});