Pass clip mute settings to browser export audio processing

This commit is contained in:
webadderall
2026-09-15 12:53:47 +10:00
parent 989a0813f9
commit f5e12ecb1f
2 changed files with 13 additions and 0 deletions
+12
View File
@@ -53,6 +53,18 @@ function fakeAudioBuffer(channels: Float32Array[]): AudioBuffer {
}
describe("AudioProcessor offline render preparation", () => {
it("routes a muted full-track clip through offline audio rendering", async () => {
const processor = new AudioProcessor();
const render = vi.spyOn(processor as unknown as OfflineRenderTestHarness,
"renderAndMuxOfflineAudio").mockResolvedValue();
const clips = [{ id: "clip", startMs: 0, endMs: 1000, sourceStartMs: 0, speed: 1, muted: true }];
const muxer = {} as never;
await processor.process(null, muxer, "recording.mp4", [], [], undefined,
[], [], undefined, undefined, clips);
expect(render).toHaveBeenCalledWith("recording.mp4", [], [], [], [],
undefined, undefined, clips, muxer);
});
it("rejects a cancelled chunked render instead of returning a partial WAV", async () => {
const processor = new AudioProcessor() as unknown as OfflineRenderTestHarness;
vi.spyOn(processor, "prepareOfflineRender").mockResolvedValue({
+1
View File
@@ -412,6 +412,7 @@ export class VideoExporter {
this.config.sourceAudioFallbackPaths,
this.config.sourceAudioFallbackStartDelayMsByPath,
this.config.sourceAudioTrackSettings,
this.config.clipRegions,
),
"audio processing",
"audio",