mirror of
https://github.com/Tonejs/Tone.js
synced 2025-01-25 01:55:00 +00:00
18 lines
No EOL
377 B
JavaScript
18 lines
No EOL
377 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.run();
|
|
};
|
|
}); |