Browsers went silent after any host key press: every input-owner change bumped
the world epoch, the server cleared the audio ring and restarted numbering at
1, and the AudioWorklet dropped every "old" block until the count passed its
last sequence. Numbering is now monotonic per role for the server lifetime; a
cleared ring and a retuned receiver skip one number so browsers crossfade,
reconnects resume with ?after=<sequence>, duplicates are counted, and the audio
socket tolerates a six-second send stall.
Buffers sized for the 16 GB device: local lead 1.5 s with a 5 s queue, browser
lead 2 s with a 6 s maximum, refill 1 s, stale 3 s, SIM_CATCHUP_MAX_S 2.5 s
(queue >= lead + catch-up + block, pinned by a test), SDL mixer buffer 2048
samples. Remote Crew publication no longer spikes the main thread: sonar history
rows are cached per station with identical results, role states are shallow
copies, the compact sonar state is built from the dict, the roster is read at
4 Hz. New counters (mixer channel idle, late pump iterations, input gaps,
per-phase frame times, server stream stats) and tools/audio_soak.py, which runs
the game headless with simulated browsers or as a Wi-Fi client and reports
stream continuity. Docs, manual and install guide updated.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
- Remote Crew roles "uboot" (command) and "uboot_sonar" bind the living
hostile submarine with the smallest id; the binding is transient (never
saved) and hands the boat back to the AI on release, load or reset.
- Manual Sub mode: course/speed/depth orders within the physics limits,
checked fire (arc, tubes, stores), decoy, active ping, emergency blow.
- SonarStation extracts the operator state; the boat gets its own full
sonar workstation (observer adapter, frigate acoustic source), audio
stream and projections with the frigate's shape, without towed array.
- Options page 2 chooses the uConsole side (frigate default, never saved;
only outside a mission); --play-sub for one launch.
- uConsole U-boat command station in the Bridge layout: shared chart
geography with the boat, its contacts and own torpedoes, threat bar,
Navigation (water column) and Weapons & contacts pages, boat log and
telemetry in the configured bottom band; chart zoom/follow/drag.
- Web: the boat's own torpedoes on the U-boat chart (own_weapons).
- Sonar view reads the active workstation's observer, never the frigate
truth, while the boat's sonar is shown.
- Tests: determinism with equal entity-id starts, truth guard while
drawing, chart/page controls, schema with own_weapons, web-host rooms
hold the nine frigate stations only. Manual EN/DE and help updated.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>