From 4ad22db5aa06e10c9fa29a1a5268838dbe86a642 Mon Sep 17 00:00:00 2001 From: "Brandon McGinty (chatgpt)" Date: Sun, 9 Aug 2026 13:17:10 -0400 Subject: [PATCH] Keep jitter playback moving after local drops --- gumble/gumbleopenal/stream.go | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/gumble/gumbleopenal/stream.go b/gumble/gumbleopenal/stream.go index 88eb976..7112289 100644 --- a/gumble/gumbleopenal/stream.go +++ b/gumble/gumbleopenal/stream.go @@ -464,6 +464,12 @@ func (s *Stream) OnAudioStream(e *gumble.AudioStreamEvent) { for { pkt := popNext() if pkt == nil { + // A locally dropped packet must not permanently stall the + // jitter buffer waiting for a sequence number that cannot arrive. + if len(jitterBuf) > 0 && jitterBuf[0].Sequence > jitterNextSeq { + jitterNextSeq = jitterBuf[0].Sequence + continue + } break } reclaim()