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:
parent
aee4f53fd2
commit
13f85b4220
4 changed files with 61 additions and 12 deletions
|
|
@ -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),
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue