Recorder no longer says "Skipping Silence" (#23597)

* Removed Skipped Silence

* moving conditionals

* That is what I meant ||

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>

---------

Co-authored-by: DGamerL <108773801+DGamerL@users.noreply.github.com>
This commit is contained in:
Daniel Lenrd
2024-01-21 20:52:10 +00:00
committed by GitHub
co-authored by DGamerL
parent 2889003fd5
commit 4639efbceb
@@ -210,14 +210,10 @@
atom_say("End of recording.")
break
atom_say("[mytape.storedinfo[i]]")
if(length(mytape.storedinfo) < i + 1)
if(length(mytape.storedinfo) < i + 1 || playsleepseconds > 1.4 SECONDS)
playsleepseconds = 1 SECONDS
else
playsleepseconds = (mytape.timestamp[i + 1] - mytape.timestamp[i]) SECONDS
if(playsleepseconds > 1.4 SECONDS)
sleep(10)
atom_say("Skipping [playsleepseconds / 10] seconds of silence.")
playsleepseconds = 1 SECONDS
i++
stop(TRUE)