Skip to content

Play a slow frame after the buffer ran dry, not drop it as late - #47

Merged
Yannicked merged 1 commit into
mainfrom
fix/jitter-dry-late
Oct 19, 2026
Merged

Yannicked merged 1 commit into
mainfrom
fix/jitter-dry-late

Conversation

@Yannicked

Copy link
Copy Markdown
Owner

Once the jitter buffer ran dry it concealed frames in place of ones that were only slow, and each of those, arriving after its concealed turn, counted as late and was dropped. Every frame after it came just as late, so one slow frame turned into a run of concealment and silence.

Now, when the buffer is empty and a frame arrives no older than what was concealed since it ran dry, it plays from its own time, a little later than due, and the frames after it follow on. A frame older than that is late as before.

A test covers a slow frame playing after two concealed turns, those after it following, and an older one still counted late.

+31 / −3 lines, src/huddle_audio/jitter.rs only.

🤖 Generated with Claude Code

@Yannicked
Yannicked merged commit 133c04f into main Oct 19, 2026
7 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant