mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-16 08:38:00 +00:00
removing redundant reverse test
already exists in player and buffer
This commit is contained in:
parent
7dbae675fd
commit
b06f50e9c6
1 changed files with 0 additions and 27 deletions
|
@ -67,33 +67,6 @@ define(["helper/Basic", "Tone/source/GrainPlayer", "helper/Offline", "helper/Sou
|
|||
|
||||
});
|
||||
|
||||
context("Reverse", function(){
|
||||
|
||||
it("can be played in reverse", function(done){
|
||||
var player;
|
||||
var offline = new Offline();
|
||||
var audioBuffer = buffer.get().getChannelData(0);
|
||||
var lastSample = audioBuffer[audioBuffer.length - 1];
|
||||
offline.before(function(dest){
|
||||
player = new GrainPlayer(buffer.get()).connect(dest);
|
||||
player.reverse = true;
|
||||
player.start(0);
|
||||
});
|
||||
offline.test(function(sample, time){
|
||||
if (time === 0){
|
||||
expect(sample).to.equal(lastSample);
|
||||
}
|
||||
});
|
||||
offline.after(function(){
|
||||
player.dispose();
|
||||
buffer.reverse = false;
|
||||
done();
|
||||
});
|
||||
offline.run();
|
||||
});
|
||||
|
||||
});
|
||||
|
||||
context("Looping", function(){
|
||||
|
||||
beforeEach(function(done){
|
||||
|
|
Loading…
Reference in a new issue