Screen share 15: Windows stream audio capture (WASAPI process loopback) #162

Closed
opened 2026-11-12 02:06:57 +00:00 by charles · 0 comments
Owner

Files:

  • Create: crates/fluxer-capture/src/wasapi/{mod.rs,loopback.rs}, crates/fluxer-capture/tests/wasapi_real.rs
  • Modify: crates/fluxer-capture/{Cargo.toml,README.md,src/lib.rs}, workspace Cargo.toml (windows 0.62 features)
  • Test: unit + real (FLUXER_CAPTURE_TESTS=1)

Interfaces:

  • Produces: WasapiAudioCapturer: StreamAudioCapturer (spec §9): "system" = exclude own process tree, "application" = include the target tree (AppMatch::Pid); float or 16-bit PCM → i16 10 ms stereo 48 kHz; supported() -> bool (OS build check; below the minimum the toggle is disabled with a reason). Ported from desk/native/win-process-loopback (lib.rs:1114-1219,1419-1471) with an attribution header; no napi.

  • Step 1: Write failing tests: unit pcm16_and_f32_convert_to_i16_frames, frames_are_exactly_10ms; CI server_core_without_audio_is_an_error_not_a_panic; real system_mode_hears_other_process_not_self, application_mode_hears_only_target.

  • Step 2–5: FAIL → implement → PASS → commit feat(capture): Windows stream audio.

Depends on: Screen share 3 (#150)

Plan: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/plans/2026-11-11-screenshare.md
Spec: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/specs/2026-11-11-fluxer-native-screenshare-design.md

**Files:** - Create: `crates/fluxer-capture/src/wasapi/{mod.rs,loopback.rs}`, `crates/fluxer-capture/tests/wasapi_real.rs` - Modify: `crates/fluxer-capture/{Cargo.toml,README.md,src/lib.rs}`, workspace `Cargo.toml` (`windows` 0.62 features) - Test: unit + real (`FLUXER_CAPTURE_TESTS=1`) **Interfaces:** - Produces: `WasapiAudioCapturer: StreamAudioCapturer` (spec §9): "system" = exclude own process tree, "application" = include the target tree (`AppMatch::Pid`); float or 16-bit PCM → `i16` 10 ms stereo 48 kHz; `supported() -> bool` (OS build check; below the minimum the toggle is disabled with a reason). Ported from `desk/native/win-process-loopback` (`lib.rs:1114-1219,1419-1471`) with an attribution header; no napi. - [ ] **Step 1: Write failing tests**: unit `pcm16_and_f32_convert_to_i16_frames`, `frames_are_exactly_10ms`; CI `server_core_without_audio_is_an_error_not_a_panic`; real `system_mode_hears_other_process_not_self`, `application_mode_hears_only_target`. - [ ] **Step 2–5:** FAIL → implement → PASS → commit `feat(capture): Windows stream audio`. Depends on: Screen share 3 (#150) Plan: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/plans/2026-11-11-screenshare.md Spec: https://git.forked.io/charles/fluxer-native/src/branch/main/docs/superpowers/specs/2026-11-11-fluxer-native-screenshare-design.md
charles added this to the Screen share milestone 2026-11-12 02:06:57 +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#162
No description provided.