fix(playback): surface stream errors as toasts, sandbox-aware for ALSA

The player has recorded a user-readable message on stream-open failure
since the Tauri era, but the drain lived in Tauri's polling loop and
was never ported to the Slint poll loop — record_stream_error had ZERO
consumers, so ALSA Direct/exclusive failures showed as a bar frozen at
0:00 with no explanation (#508, #534, #500). Drain the message each
tick and toast it. When running inside Flatpak/Snap and the failure is
ALSA-shaped, explain that direct hw: access is blocked by the sandbox
and point at PipeWire/System Default instead of showing the raw error.
2 new msgids translated in all 7 locales.

cc
This commit is contained in:
vicrodh committed 2026-07-05 12:12:10 -06:00
1 parent ceb25cd1d1
commit f83eadb398
8 files changed
+67

No files matched your search

@@ -4394,3 +4394,9 @@ msgstr "El ajuste de renderizador volvió a Automático — el arranque anterior
msgid "Renderer switched to GPU (compatibility) — the GPU renderer failed to start"
msgstr "El renderizador cambió a GPU (compatibilidad) — el renderizador GPU no pudo iniciar"
msgid "Audio output error"
msgstr "Error de salida de audio"
msgid "Direct ALSA device access is blocked inside Flatpak/Snap — switch the audio backend to PipeWire or System Default"
msgstr "El acceso directo a dispositivos ALSA está bloqueado dentro de Flatpak/Snap — cambia el backend de audio a PipeWire o al predeterminado del sistema"