Skip to content

armgit / Cap

Public Imported from GitHub
0

Open source Loom alternative. Beautiful, shareable screen recordings.

chore: drop a comment that restates the waveform offset

Yoav Levavi19501c4e15ab
diff --git a/apps/desktop/src/routes/editor/Timeline/ClipTrack.tsx b/apps/desktop/src/routes/editor/Timeline/ClipTrack.tsx
index a3c5b5d24..52ad037dc 100644
--- a/apps/desktop/src/routes/editor/Timeline/ClipTrack.tsx
+++ b/apps/desktop/src/routes/editor/Timeline/ClipTrack.tsx
@@ -108,8 +108,6 @@ function createWaveformPath(
const amplitudeAt = (outputTime: number) => {
const time = sourceTimeAt(outputTime);
if (time === null) return 0;
- // Playback reads each track at source time + its clip offset
- // (crates/editor/src/audio.rs), so the waveform must too.
const index = Math.floor((time + offsetSecs) * 10);
const sample = waveform[index];
const db =