Tone.js/test/helper/OutputAudio.ts
2024-05-03 10:16:02 -04:00

8 lines
241 B
TypeScript

import { expect } from "chai";
import { Offline } from "./Offline.js";
export function OutputAudio(callback): Promise<void> {
return Offline(callback, 0.1).then((buffer) => {
expect(buffer.isSilent(), "no audio").to.equal(false);
});
}