Fix broken function

sstvFormat.getDuration() was off by a factor of 3 for some bizarre reason, don't ask why
This commit is contained in:
CtrlAltDel 2024-10-22 00:38:20 +01:00 committed by GitHub
parent 5876a3ec32
commit 688f7b38e4
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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();