Merge pull request #15 from CKegel/dev

Fix encode playback not ending.
This commit is contained in:
Christian 2025-03-26 23:50:20 -04:00 committed by GitHub
commit ae99847f37
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

6
encode.js Normal file → Executable file
View File

@ -649,9 +649,9 @@ startButton.onclick = () => {
sstvFormat.prepareImage(canvasData.data);
let startTime = audioCtx.currentTime + 1;
let endTime = sstvFormat.encodeSSTV(oscillator, audioCtx.currentTime + 1);
oscillator.start(startTime);
oscillator.end(endTime);
let endTime = sstvFormat.encodeSSTV(oscillator, audioCtx.currentTime + 1);
oscillator.stop(endTime);
};
function createWAVHeader(audioLength) {
@ -742,4 +742,4 @@ downloadButton.onclick = () => {
document.body.removeChild(a);
URL.revokeObjectURL(url);
});
};
};