Tone.js/test/helper/OutputAudio.ts
2019-06-19 10:15:15 -04:00

8 lines
211 B
TypeScript

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);
});
}