import { spawn } from "node:child_process"; import { stat } from "node:fs/promises"; import { absOf, pickWindow, resolveClip, windowsFor } from "@/lib/report/serve.mjs"; import { MAX_DECODE_SPAN, wavHeader } from "@/lib/report/playback.mjs"; import { FFMPEG_BIN } from "umtool-report-to-video/build-video"; export const dynamic = "force-dynamic"; // A cached source window's SOUND, decoded, for the bench to play exactly. // // The bench plays every bounded range -- a selection, an edge, a line -- from // a decoded buffer with Web Audio, because an