mirror of
https://github.com/Tonejs/Tone.js
synced 2025-01-08 18:08:46 +00:00
39 lines
No EOL
801 B
JavaScript
39 lines
No EOL
801 B
JavaScript
define(["Tone/effect/Convolver", "helper/Basic", "helper/EffectTests", "Tone/core/Buffer"],
|
|
function (Convolver, Basic, EffectTests, Buffer) {
|
|
describe("Effect", function(){
|
|
|
|
Basic(Convolver);
|
|
|
|
var ir = new Buffer();
|
|
|
|
var testFile = "./audio/sine.wav";
|
|
|
|
before(function(done){
|
|
ir.load(testFile, function(){
|
|
done();
|
|
});
|
|
});
|
|
|
|
// EffectTests(Convolver, ir);
|
|
|
|
context("API", function(){
|
|
|
|
it ("can pass in options in the constructor", function(){
|
|
var convolver = new Convolver({
|
|
"url" : testFile,
|
|
});
|
|
convolver.dispose();
|
|
});
|
|
|
|
it ("invokes the onload function when loaded", function(done){
|
|
var convolver = new Convolver({
|
|
"url" : testFile,
|
|
"onload" : function(){
|
|
convolver.dispose();
|
|
done();
|
|
}
|
|
});
|
|
});
|
|
});
|
|
});
|
|
}); |