this is either gonna be great, or cursed beyond any and all

This commit is contained in:
2026-04-07 11:45:53 +02:00
parent 7d9bda114a
commit 810965a682
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -22,7 +22,7 @@ class WebSocketAudioPlayer {
const liveEdge = buffered.end(buffered.length - 1);
const lag = liveEdge - this.audio.currentTime;
if (lag > .85) this.audio.currentTime = liveEdge - 0.2; // snap to near live edge
if (lag > 1) this.audio.currentTime = liveEdge - 0.25; // snap to near live edge
}
Start() {