v0.102.0: Connections › Connect to Mumble… plays into a Mumble room as a user of its own — it joins the server your Mumble is on (or one you saved there), follows you from room to room unless you pick one, and pauses rather than playing out loud if the connection drops; name, quality and stereo in Preferences › Integrations
This commit is contained in:
@@ -1329,6 +1329,49 @@ persistence) → GUI (Qt widgets that read the manager and connect to its signal
|
||||
shairport's `/info` (not a plist), so the shim treats an unreadable
|
||||
`/info` as none.
|
||||
|
||||
- **`lintunes/mumble/`** — Mumble playback (Connections → Connect to
|
||||
Mumble…, also in the speakers button's menu; Round 134). LinTunes joins
|
||||
trav's work Mumble server as **a user of its own** (a bot: its own name,
|
||||
`mumble_name`, and a self-signed certificate made once by the `openssl`
|
||||
CLI into `$XDG_DATA_HOME/lintunes/mumble/`) and talks the music into a
|
||||
room — the third `PlaybackSink`, exclusive with Chromecast and AirPlay.
|
||||
Trav, in the same room with headphones, hears it a moment late like
|
||||
everyone else. **Where to connect** (`servers.py`): the running Mumble's
|
||||
D-Bus `getCurrentUrl` (`mumble://trav@host:port/Room/Sub-room`; no
|
||||
password) means join straight away, no dialog; otherwise
|
||||
`gui/mumble_dialog.py` lists Mumble's saved servers from its
|
||||
`mumble.sqlite` (Flatpak path first, opened `mode=ro`, only the
|
||||
`servers` and `cert` tables) plus a box for any address. **It follows
|
||||
trav** — matched by the name in that URL/favourite — into every room he
|
||||
moves to, until a room is picked in the Mumble Room submenu (pinned;
|
||||
"Follow …" goes back). **Trust**: a CA-signed server cert is checked
|
||||
normally; a self-signed one only on its SHA-1 matching the digest trav's
|
||||
Mumble accepted (`cert` table), else trust-on-first-use pinned in
|
||||
config.json's `mumble_server_certs`; a changed cert is refused. **All
|
||||
hand-rolled** (raop.py's spirit): `proto.py` is the TLS control stream
|
||||
(u16 type, u32 length, protobuf encoded by field number — pymumble is
|
||||
abandoned and its generated code fails on protobuf ≥ 4), voice tunnelled
|
||||
through it as `UDPTunnel` frames in the **legacy** packet format —
|
||||
LinTunes announces itself as **1.4.0**, because a 1.5 server answers a
|
||||
1.5 client in the protobuf voice format — Opus via **libopus through
|
||||
ctypes** (`opus.py`, music signal, constrained VBR). `sink.py`: one
|
||||
`ffmpeg` decode per stretch of playback (48 kHz s16le), 40 ms frames,
|
||||
volume slider as a gain, sent **in real time, never ahead** (the server
|
||||
counts bandwidth per second and drops what's over; listeners' jitter
|
||||
buffers are sized for talkers); a pause or the song's end sends a
|
||||
**terminator** frame. Position = sent − `mumble_latency_ms` (config.json,
|
||||
default 150). Bitrate: `mumble_kbps` (default 128) held under the
|
||||
server's per-user `max_bandwidth` (`proto.payload_budget_bps`, said once
|
||||
in the status bar); `mumble_stereo` (a mono Mumble downmixes). **A lost
|
||||
connection or a Disconnect pauses** before the swap back — unlike
|
||||
Chromecast/AirPlay, music must not jump out of this computer mid-meeting.
|
||||
A server's flood protection bans an address after ~10 connects in two
|
||||
minutes (seen as a reset). Test only against a throwaway server:
|
||||
`docker run -d --rm --name lintunes-mumble-test -p
|
||||
127.0.0.1:64739:64738 -e MUMBLE_SUPERUSER_PASSWORD=… mumblevoip/
|
||||
mumble-server` — **never trav's work server**, and the conftest
|
||||
`_no_real_mumble` guard keeps every test off his D-Bus and database.
|
||||
|
||||
## Conventions & gotchas
|
||||
|
||||
- **The Rabbit R1's screen is not what the internet says.** Measured:
|
||||
|
||||
Reference in New Issue
Block a user