Set fldigi's sound card in radio configure

fldigi gets PortAudio as its audio system, with the radio's card for
capture and playback. It opens devices by name, so radio lists PortAudio's
devices through the system library, as fldigi does, and picks PipeWire's
names for the card (through PortAudio's JACK support) where just one
device has them, or else ALSA's, with the card's number. Devices that are
unset, a default, or the same card under an old number are replaced; a
device you chose, or fldigi on PulseAudio or OSS, is left alone unless
--force.

not1mm now uses the same device list, instead of asking its own Python's
sounddevice, which reads the same library. POTACAT is the only program
whose sound card is left for you to choose.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
David Young
2026-11-28 13:19:04 -07:00
co-authored by Claude Opus 5.5
parent c2cb2bc2f4
commit 8020cdc061
5 changed files with 194 additions and 79 deletions
+2 -7
View File
@@ -18,13 +18,8 @@ control a radio.
- [ ] `radio configure`, the rest. It writes the rigctld user service and
points WSJT-X, JS8Call, Pat, fldigi, Dire Wolf, not1mm, QLog, POTACAT
and Graywolf at it. Still to do:
- [ ] Sound cards for fldigi and POTACAT. fldigi (PortAudio) names a card
with its number, as in "USB Audio Device: - (hw:3,0)", which can
change between boots. PortAudio also lists PipeWire's devices through
JACK under stable names, as not1mm now uses; check whether fldigi's
PortAudio list includes them. POTACAT keeps browser device ids, which
only it can see. WSJT-X, JS8Call, Dire Wolf, Graywolf and not1mm are
done
- [ ] POTACAT's sound card. It keeps browser (Chromium) device ids, which
only it can see; every other program's is done
- [ ] flrig can't use rigctld, so it can't run alongside it. Say so, or
offer flrig as the controller instead
- [ ] More than one radio at once: a rigctld for each, on its own port