From 688f7b38e4fecd058d3353474d08fe58a59c574a Mon Sep 17 00:00:00 2001 From: CtrlAltDel <124590064+commandcontrolQ@users.noreply.github.com> Date: Tue, 22 Oct 2024 00:38:20 +0100 Subject: [PATCH] Fix broken function sstvFormat.getDuration() was off by a factor of 3 for some bizarre reason, don't ask why --- encode.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encode.js b/encode.js index 1a585d0..3e1d8dc 100644 --- a/encode.js +++ b/encode.js @@ -701,7 +701,7 @@ startButton.onclick = () => { } sstvFormat.getDuration = function() { - return (this.numScanLines * (this.scanLineLength + this.blankingInterval) + this.syncPulseLength) + 1; + return (this.numScanLines * (this.scanLineLength + this.blankingInterval + this.syncPulseLength * 3); }; let oscillator = audioCtx.createOscillator();