Windows (WASAPI) support: cfg-gate Linux-only virtual mic

The Linux/PipeWire virtual mic (pactl, WirePlumber fix, signal restore)
is now behind target_os cfg; on Windows/macOS it compiles to stubs and
virtual mic defaults to off. Use VB-CABLE/BlackHole as the output device.
Cross-checked with cargo check --target x86_64-pc-windows-gnu (0 errors).
This commit is contained in:
loki5512344 2026-08-02 20:08:30 +02:00
parent aee4f53fd2
commit 13f85b4220
Signed by: boba
GPG key ID: 253067914055423B
4 changed files with 61 additions and 12 deletions

View file

@ -101,7 +101,8 @@ impl AppConfig {
virtual_mic: if cli.no_virtual_mic {
false
} else {
file.virtual_mic.unwrap_or(true)
file.virtual_mic
.unwrap_or(cfg!(any(target_os = "linux", target_os = "freebsd")))
},
pitch_correct: cli.pitch_correct.or(file.pitch_correct).unwrap_or(false),
}