Set POTACAT's sound card in radio configure

POTACAT keeps Chromium's device ids, which only it can see, with each
device's name beside it, and when a saved id matches no device it takes
the one device of that name when it starts (lib/audio-device-heal.js).
So HamPack's rig gets PipeWire's names for the radio's card as those
names, which is how Chromium names PipeWire's devices, and placeholder
ids that match nothing. Only HamPack's rig gets a sound card; one you
chose on it is left alone unless --force, which now keeps the rig's
other settings.

Every program that uses the radio's sound card now gets it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
David Young
2026-11-28 13:31:11 -07:00
co-authored by Claude Opus 5.5
parent 8020cdc061
commit b2ffaf9592
5 changed files with 104 additions and 24 deletions
+5 -1
View File
@@ -92,7 +92,11 @@ Dire Wolf, not1mm, QLog and POTACAT quit:
10. Open POTACAT (after running it once). My Rigs has "... (HamPack's
rigctld)" as a rigctld Network rig at 127.0.0.1:4532, it's the active rig,
and the frequency follows the radio. If you have an operator profile, check
POTACAT doesn't say the connection belongs to another rig.
POTACAT doesn't say the connection belongs to another rig. The rig's audio
shows the radio's card for input and output: `radio configure` saved them
by name only, and POTACAT's log should say it followed each "by name" when
it started. If they're blank, note the names POTACAT lists for the card,
since radio assumed Chromium shows PipeWire's descriptions.
11. With no channels in Graywolf, run `radio configure` (it asks for sudo to
stop Graywolf). Graywolf's web UI shows a channel named after the radio,
on plughw:CARD=...,DEV=0 for input and output, 1200 baud APRS, with PTT