fix(audio): select the managed default capture source explicitly

This commit is contained in:
Xuc Pan committed 2026-11-09 23:26:21 +08:00
1 parent 98af6fce28
commit eb862b5529
12 files changed
+203 -32

No files matched your search

+2 -2
View File
@@ -12,8 +12,8 @@
| Wayland virtual source | available when advertised | `uur display source virtual` → ScreenCast Virtual source |
| Wayland multi-screen capture | available | Multiple PipeWire streams → virtual desktop composite → per-monitor crops |
| Clipboard and phone IME text | planned | RemoteDesktop Clipboard portal, then X11 fallback |
| Speaker and microphone audio | available through Wine | PulseAudio, pipewire-pulse, or ALSA selected from live capabilities |
| System-audio loopback and remote mute | Wine integration | WASAPI → winepulse/winealsa |
| Speaker and microphone audio | Wine fallback capture | PulseAudio, pipewire-pulse, or ALSA; proprietary dual-channel audio driver unavailable |
| System-audio loopback | explicit default-input override | `uur audio source system` selects a real PulseAudio monitor for the fallback stream; remote mute needs separate validation |
| Native tray | implemented | StatusNotifierItem + DBusMenu, supervised with the session; no Wine XEmbed dependency |
| Terminal | available | ConPTY/mux ABI adapters → authenticated native Rust PTY/login shell |
| Quick Launch | implemented | Windows app inventory adapter → XDG desktop catalog → `gio launch` |
+21
View File
@@ -205,6 +205,27 @@ the `pipewire-pulse` compatibility server. A native PipeWire session without
PulseAudio compatibility uses Wine's ALSA driver. `uur doctor` prints the live
choice; this is independent from PipeWire's Wayland video role.
UU's `nevaudio.sys` driver is unavailable under Wine. Its fallback can label
the default recording input as system sound, even when that input is a physical
microphone. To choose system sound explicitly with PulseAudio or pipewire-pulse:
```bash
uur audio sources
uur audio source system
uur stop
uur run
```
`system` resolves the default output's real monitor source before startup;
an unavailable selection stops startup with a diagnostic. The override applies
only to Wine's default capture endpoint in this managed prefix. An explicitly
selected device in UU keeps its own routing. Host audio defaults and other apps
are unchanged. `uur audio source SOURCE_NAME` selects another listed input;
`uur audio source default` follows the existing audio environment again.
The selected output is resolved again on the next session, so restart after
changing audio hardware. This provides one fallback capture stream; simultaneous
independent speaker and microphone channels still need the official driver.
### Displays and virtual sources
```bash