Skip to content

🎥 Make videos programmatically with React

Update combine-audio.ts

Jonny Burger316dd9acdc78
diff --git a/packages/renderer/src/combine-audio.ts b/packages/renderer/src/combine-audio.ts
index 58a1c11b40..d934e17e70 100644
--- a/packages/renderer/src/combine-audio.ts
+++ b/packages/renderer/src/combine-audio.ts
@@ -105,8 +105,8 @@ const combineAudioSeamlessly = async ({
.map((p, i) => {
const isLast = i === files.length - 1;
- const targetStart = i * chunkDurationInSeconds;
- const endStart = (i + 1) * chunkDurationInSeconds;
+ const targetStart = i * chunkDurationInSeconds * 1_000_000;
+ const endStart = (i + 1) * chunkDurationInSeconds * 1_000_000;
const startTime = getClosestAlignedTime(targetStart);
const endTime = getClosestAlignedTime(endStart);