Add a "Buffer for WiFi" toggle #2
No reviewers
Labels
No labels
accessibility
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
vratk0529/homeaudio-desktop-app!2
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "latency-mode"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
A tickbox under Stream that asks the board how deep to make the jitter
buffer for this machine's receiver:
latency.low_ms(20 ms), about 115 ms end to end. For a wired link.latency.buffered_ms(800 ms). Rides out the radio dropping outwhile you carry a laptop downstairs, at the cost of being that far behind.
It is per machine, which is the point: raising it on the board globally would
hand back the wired latency for everyone.
Pairs with Vratk0529/stm32mp1xx-network-audio#2, which adds the
device/{id}/latencycommand this publishes to. Without that side, the togglestays insensitive.
Three implementation notes
The toggle shows the board, never our request. State comes from
device/{id}/config'sjitter_ms. The two differ while a change is in flight,and after the board clamps a value they differ for good — displaying our own
request would be a small lie.
jitter_msisOption, not a defaulted number. A board too old to publishit leaves the tickbox insensitive and the hint blank, rather than claiming a
buffer size there is no evidence for.
Switching is audible.
rtpjitterbufferwill not take a new latency whileplaying, so the board restarts the receiver — a gap of a few hundred ms. Hence
a deliberate tickbox rather than a slider. The tooltip says so.
Testing
cargo test— 7/7 pass, one new: a config file written before[latency]existed still loads and gets 20/800. GUI smoke-tested against a dead broker
(no panics, no GTK warnings). The toggle itself is untested against a live
board until the daemon side is deployed.