mirror of
https://github.com/Tonejs/Tone.js
synced 2024-11-15 08:17:07 +00:00
reverse works at different sampling rates
This commit is contained in:
parent
1a9d3699da
commit
abee380fc2
1 changed files with 2 additions and 2 deletions
|
@ -154,8 +154,8 @@ describe("Player", () => {
|
|||
});
|
||||
|
||||
it("can be played in reverse", () => {
|
||||
const shorterBuffer = buffer.slice(0.1);
|
||||
const audioBuffer = (shorterBuffer.get() as AudioBuffer).getChannelData(0).slice(1000);
|
||||
const shorterBuffer = buffer.slice(0, buffer.duration / 2);
|
||||
const audioBuffer = (shorterBuffer.get() as AudioBuffer).getChannelData(0);
|
||||
const lastSample = audioBuffer[audioBuffer.length - 1];
|
||||
expect(lastSample).to.not.equal(0);
|
||||
return Offline(() => {
|
||||
|
|
Loading…
Reference in a new issue