Audio 52: apps/fluxer PipeWire initialiser order, audio targets, rule conversion #342

Closed
opened 2026-11-12 18:34:15 +00:00 by charles · 0 comments
Owner

Plan: docs/superpowers/plans/2026-11-12-textchat.md, section "Task 52" (Audio devices and PipeWire, added 2026-11-12). Design: docs/superpowers/specs/2026-11-12-fluxer-native-audio-devices-design.md. Closes the gaps of #220 and #233 (and #225 item 7).

Task 52: apps/fluxer PipeWire initialiser order, audio targets, rule conversion

Issue: (to be created)

Files:

  • Modify: apps/fluxer/src/{voice_rt.rs,capture_rt.rs,audio_rt.rs}, apps/fluxer/README.md, docs/parity/settings.toml (note on section-voice_video-input-output: Linux lists PipeWire devices, ALSA fallback filtered; #220)
  • Test: apps/fluxer/src/capture_rt.rs (unit), apps/fluxer/tests/ (existing runtime test file for capture, or capture_audio_targets.rs)

Interfaces:

  • Consumes: Task 49 (list_targets, AudioTarget, AppMatch::Props, AudioRule.exclude, initialize_pipewire), Task 50 (ListAudioTargets, AudioTargets, AudioNode, the rule fields), Task 51 (CpalHost::with_pipewire_init).

  • Produces: on Linux the real voice backend builds CpalHost::with_pipewire_init(fluxer_capture::initialize_pipewire) (never CpalHost::new() in a binary that links libwebrtc; a comment says why); CaptureCommand::ListAudioTargets runs list_targets on the capture thread and answers CaptureEvent::AudioTargets(Some(nodes)), or None on CaptureError::Unsupported / backend error (logged once, no props in logs above debug); audio_rule converts AppMatch::Props and exclude; the devserver's fake capture backend lists its default targets so the submenu shows under --devserver.

  • Step 1: Write failing tests: rules_convert_props_and_exclude, list_audio_targets_answers_with_nodes, unsupported_listing_answers_none, linux_voice_backend_uses_the_webrtc_pipewire_initialiser (asserts the constructor path through a fn pointer comparison or a constructor helper returning the init it used), devserver_lists_fake_audio_targets.

  • Step 2–5: FAIL → implement → PASS → commit feat(app): PipeWire initialiser order, audio targets and property rules. In the PR, say whether a call and the mic test ran on PipeWire on this machine (FLUXER_AUDIO_DEVICE_TESTS=1, FLUXER_CAPTURE_TESTS=1).

🤖 Generated with Claude Code

Plan: `docs/superpowers/plans/2026-11-12-textchat.md`, section "Task 52" (Audio devices and PipeWire, added 2026-11-12). Design: `docs/superpowers/specs/2026-11-12-fluxer-native-audio-devices-design.md`. Closes the gaps of #220 and #233 (and #225 item 7). ### Task 52: `apps/fluxer` PipeWire initialiser order, audio targets, rule conversion **Issue:** (to be created) **Files:** - Modify: `apps/fluxer/src/{voice_rt.rs,capture_rt.rs,audio_rt.rs}`, `apps/fluxer/README.md`, `docs/parity/settings.toml` (note on `section-voice_video-input-output`: Linux lists PipeWire devices, ALSA fallback filtered; #220) - Test: `apps/fluxer/src/capture_rt.rs` (unit), `apps/fluxer/tests/` (existing runtime test file for capture, or `capture_audio_targets.rs`) **Interfaces:** - Consumes: Task 49 (`list_targets`, `AudioTarget`, `AppMatch::Props`, `AudioRule.exclude`, `initialize_pipewire`), Task 50 (`ListAudioTargets`, `AudioTargets`, `AudioNode`, the rule fields), Task 51 (`CpalHost::with_pipewire_init`). - Produces: on Linux the real voice backend builds `CpalHost::with_pipewire_init(fluxer_capture::initialize_pipewire)` (never `CpalHost::new()` in a binary that links libwebrtc; a comment says why); `CaptureCommand::ListAudioTargets` runs `list_targets` on the capture thread and answers `CaptureEvent::AudioTargets(Some(nodes))`, or `None` on `CaptureError::Unsupported` / backend error (logged once, no props in logs above `debug`); `audio_rule` converts `AppMatch::Props` and `exclude`; the devserver's fake capture backend lists its default targets so the submenu shows under `--devserver`. - [ ] **Step 1: Write failing tests**: `rules_convert_props_and_exclude`, `list_audio_targets_answers_with_nodes`, `unsupported_listing_answers_none`, `linux_voice_backend_uses_the_webrtc_pipewire_initialiser` (asserts the constructor path through a `fn` pointer comparison or a constructor helper returning the init it used), `devserver_lists_fake_audio_targets`. - [ ] **Step 2–5:** FAIL → implement → PASS → commit `feat(app): PipeWire initialiser order, audio targets and property rules`. In the PR, say whether a call and the mic test ran on PipeWire on this machine (`FLUXER_AUDIO_DEVICE_TESTS=1`, `FLUXER_CAPTURE_TESTS=1`). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
charles added this to the Text chat milestone 2026-11-12 18:34:15 +00:00
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#342
No description provided.