Skip to content

🎥 Make videos programmatically with React

audio

Jonny Burger203968b425a4
diff --git a/packages/lambda/src/test/integration/draw-wav.ts b/packages/lambda/src/test/integration/draw-wav.ts
index 0ae480231b..e47934a632 100644
--- a/packages/lambda/src/test/integration/draw-wav.ts
+++ b/packages/lambda/src/test/integration/draw-wav.ts
@@ -418,7 +418,7 @@ export class Wavedraw {
const percentWrong = (differences / currentFile.length) * 100;
- if (percentWrong > 0.01) {
+ if (percentWrong > 0.02) {
throw new Error(
`Waveforms are different, ${percentWrong} differences found`,
);
diff --git a/packages/renderer/src/test/asset-calculation.test.tsx b/packages/renderer/src/test/asset-calculation.test.tsx
index 4a9f7e0d0f..016e6c59bb 100644
--- a/packages/renderer/src/test/asset-calculation.test.tsx
+++ b/packages/renderer/src/test/asset-calculation.test.tsx
@@ -42,6 +42,7 @@ test('Should be able to collect assets', async () => {
playbackRate: 1,
allowAmplificationDuringRender: false,
toneFrequency: null,
+ audioStartFrame: -0,
});
});
@@ -63,6 +64,7 @@ test('Should get multiple assets', async () => {
playbackRate: 1,
allowAmplificationDuringRender: false,
toneFrequency: null,
+ audioStartFrame: -0,
});
expect(withoutId(assetPositions[1])).toEqual({
type: 'audio',
@@ -74,6 +76,7 @@ test('Should get multiple assets', async () => {
playbackRate: 1,
allowAmplificationDuringRender: false,
toneFrequency: null,
+ audioStartFrame: -0,
});
});
@@ -99,6 +102,7 @@ test('Should handle jumps inbetween', async () => {
playbackRate: 1,
allowAmplificationDuringRender: false,
toneFrequency: null,
+ audioStartFrame: -0,
});
expect(withoutId(assetPositions[1])).toEqual({
type: 'video',
@@ -110,6 +114,7 @@ test('Should handle jumps inbetween', async () => {
playbackRate: 1,
allowAmplificationDuringRender: false,
toneFrequency: null,
+ audioStartFrame: -0,
});
});
@@ -132,6 +137,7 @@ test('Should support sequencing', async () => {
playbackRate: 1,
allowAmplificationDuringRender: false,
toneFrequency: null,
+ audioStartFrame: 20,
});
});
@@ -164,6 +170,7 @@ test('Should calculate volumes correctly', async () => {
.filter((f) => f > 0),
allowAmplificationDuringRender: false,
toneFrequency: null,
+ audioStartFrame: -0,
});
});
@@ -206,5 +213,6 @@ test('Should calculate startFrom correctly', async () => {
.filter((i) => i > 0),
allowAmplificationDuringRender: false,
toneFrequency: null,
+ audioStartFrame: 100,
});
});