Skip to main content

Module loopback

Module loopback 

Source
Expand description

System-audio loopback capture.

Exposes the same crate::audio::capture::CaptureHandle shape as the mic path so the rest of the pipeline (resampler โ†’ engine) is agnostic.

  • macOS: ScreenCaptureKit audio-only capture (see loopback_macos).
  • Windows / Linux: not yet wired โ€” returns an explanatory error so the UI can surface it as a banner.

Functionsยง

capture_app
Capture audio produced by a single application, identified by bundle identifier on macOS or PID on Windows. Returns the same CaptureHandle shape as the mic and system loopback paths so the rest of the pipeline (resampler โ†’ engine) is agnostic.
capture_loopback
Capture system audio playing on the output device name. If name is None, captures the default output.