[domistream] WIP: rustfmt, doc link, clippy fixes (one collapsible-if left in rtsp/mod.rs), PROTOCOL.md status

Paused at Mark's request.
This commit is contained in:
2026-11-25 14:32:37 +01:00
parent 30a7b90034
commit bd91a1007e
14 changed files with 68 additions and 57 deletions
+5 -3
View File
@@ -2,8 +2,9 @@
The protocol between a GameStream host (Sunshine, later Lumen) and a client (Arena Domi TV). Written from the Wolf
protocol docs in our own words, completed with facts read in Moonshine (BSD-2). Every fact has a tag; every gap is
marked **UNKNOWN Un** with what would settle it. Status: 2026-11-25, Phase A (docs + API, no logic yet). U9 narrowed and U14 settled from the approved sources the same
day (sections 3.1, 5.3); the rest waits for the lab capture ([LAB_CAPTURE.md](LAB_CAPTURE.md)).
marked **UNKNOWN Un** with what would settle it. Status: 2026-11-25, implemented as stream-v0.1.0 per these docs and the approved sources; interop with a real host
is unverified (the lab capture was not run, [LAB_CAPTURE.md](LAB_CAPTURE.md)). U9 narrowed and U14 settled from the
approved sources (sections 3.1, 5.3); where an UNKNOWN remains, the code follows the Wolf-documented behaviour.
**Tags** (details in the source log, [CLEAN_ROOM.md](CLEAN_ROOM.md)):
@@ -510,7 +511,8 @@ Every 4 data packets are followed by 2 parity packets [W6]. A block is the 4 dat
start at a multiple of 4 [M]; the base sequence and timestamp in the FEC header are the first data packet's [M].
Shards are the encrypted payloads (all 4 the same length, constant-bitrate Opus) [M]. A lost data packet is rebuilt
from any 4 of the 6 packets; its RTP header comes from the base values (sequence = base + index, timestamp = base +
index × duration) [M].
index × duration) [M]. DomiStream waits for the jitter budget (`loss_timeout`) before rebuilding a missing packet,
so a packet that arrives late is played as sent rather than as a rebuilt copy.
UNKNOWN U16 (blocks audio FEC): the parity matrix. It is a fixed 2 × 4 matrix over GF(2^8), **not** the default
construction of the RS library Moonshine uses [M]. The only value we have seen carries GPL provenance and is not