Repository navigation
fix(stream/audio): ask the host for the redundant audio plane - #89
Merged
Merged
Conversation
The page has rebuilt a lost audio frame from the copy in the next one since it first played audio, but its hello never said so. A host sends that plane only to a client that declares it, and core adds the bit for the native clients, not for a hello the page builds itself. The hello now declares it. A host that declines keeps the plain plane.
enricobuehler
marked this pull request as ready for review
November 26, 2026 11:33
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The page never declared
CLIENT_CAP_AUDIO_RED, so a host never sent it the0xD2plane and a lost audio datagram was never rebuilt, in a browser or on a Samsung TV.Why it was missed
punktfunk-coreORs the bit into every native client's hello (advertised_client_caps,client/mod.rs). The page builds its ownClientHelloinrust/session.rsand setCLIENT_CAP_CURSORalone. The host gates on the client's bit (redundancy_offered,native/handshake.rs).The receive side has been here since
d89fe5e:audio::on_datagramtakes0xD2, asks core'sAudioRedRecoverywhether the copy is owed, and releases it asseq - 1ahead of its frame.Checked
audio::on_datagramagainstAudioRedRecovery::recover_before: a reorder, a duplicate and a session's first packet recover nothing, and a copy that arrives after its original is dropped as stale byPlane::take.cargo fmt --check,cargo clippy --all-targets -- -D warnings,cargo testinpackages/stream.Not checked — why this is a draft
The
0xD2path has never run against a host, because no host ever sent it. It wants one session under loss on a real browser: audio plays, andpf_audio_loststays near zero where it climbed before.