Function audio_devices

Source
pub fn audio_devices() -> Vec<(String, bool)>
Expand description

dshow audio input devices (ffmpeg -list_devices true -f dshow -i dummy), cached. The bool marks devices that look like desktop/loopback capture.

ponytail: probed once per process — the UI polls this every frame while the recorder/settings windows are open and each probe spawns ffmpeg (~250 ms), so it must not re-run per frame. A device plugged in (or Stereo Mix enabled) mid-session therefore needs a restart; swap the OnceLock for a Mutex<Option<_>> when there is a “Refresh” button next to the device combos to clear it.