Tone.js/test/helper/OutputAudio.ts

9 lines
211 B
TypeScript
Raw Normal View History

2019-06-19 14:15:15 +00:00
import { expect } from "chai";
import { Offline } from "./Offline";
export function OutputAudio(callback) {
return Offline(callback, 0.1).then((buffer) => {
expect(buffer.isSilent()).to.equal(false);
});
}