Voice settings list every ALSA PCM instead of the PipeWire/Pulse devices #220

Closed
opened 2026-11-12 05:41:02 +00:00 by charles · 1 comment
Owner

Reported by Charles: Settings → Voice & video lists far too many input/output devices.

Cause. fluxer-audio enumerates devices through cpal::default_host() (crates/fluxer-audio/src/host_cpal.rs:89-120). On Linux that host is ALSA, and input_devices() / output_devices() return every ALSA PCM name. Every card gets hw:, plughw:, sysdefault:, front:, surround40/51/71:, iec958:, dmix:/dsnoop: and similar entries, plus pipewire, pulse and default. The only filtering is de-duplication by id.

Original behaviour. The Electron app lists what Chromium's enumerateDevices() returns: "Default" plus one entry per PipeWire/PulseAudio sink or source, with their friendly descriptions.

Possible fix (fluxer-audio, its own task). Either of:

  • talk to PipeWire/Pulse for the list (the server's sinks and sources) and open the stream through the pipewire/pulse ALSA PCM with the chosen node as target;
  • at minimum, filter the ALSA list to default, pipewire/pulse and one entry per card, as cpal's own examples suggest.

The stored device ids (DeviceId) would change. Saved choices need a migration, or they fall back to the default.

Reproduce: run cargo run -p fluxer on a Linux desktop with PipeWire and open Settings → Voice & video. Seen on feat-entity-images / feat-user-profile (12f4ce1).

**Reported by Charles:** Settings → Voice & video lists far too many input/output devices. **Cause.** `fluxer-audio` enumerates devices through `cpal::default_host()` (`crates/fluxer-audio/src/host_cpal.rs:89-120`). On Linux that host is ALSA, and `input_devices()` / `output_devices()` return every ALSA PCM name. Every card gets `hw:`, `plughw:`, `sysdefault:`, `front:`, `surround40/51/71:`, `iec958:`, `dmix:`/`dsnoop:` and similar entries, plus `pipewire`, `pulse` and `default`. The only filtering is de-duplication by id. **Original behaviour.** The Electron app lists what Chromium's `enumerateDevices()` returns: "Default" plus one entry per PipeWire/PulseAudio sink or source, with their friendly descriptions. **Possible fix (fluxer-audio, its own task).** Either of: - talk to PipeWire/Pulse for the list (the server's sinks and sources) and open the stream through the `pipewire`/`pulse` ALSA PCM with the chosen node as target; - at minimum, filter the ALSA list to `default`, `pipewire`/`pulse` and one entry per card, as cpal's own examples suggest. The stored device ids (`DeviceId`) would change. Saved choices need a migration, or they fall back to the default. **Reproduce:** run `cargo run -p fluxer` on a Linux desktop with PipeWire and open Settings → Voice & video. Seen on `feat-entity-images` / `feat-user-profile` (12f4ce1).
Author
Owner

Done on textchat (c24495a): fluxer-audio/src/host_cpal.rs:1-5 + pipewire_devices.rs: the PipeWire node list, filtered like Chromium's

Closed during the 2026-11-14 issue triage.

🤖 Generated with Claude Code

Done on `textchat` (c24495a): `fluxer-audio/src/host_cpal.rs:1-5` + `pipewire_devices.rs`: the PipeWire node list, filtered like Chromium's Closed during the 2026-11-14 issue triage. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
charles/fluxer-native#220
No description provided.