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

@@ -4364,3 +4364,9 @@ msgstr "Renderer-Einstellung auf Automatisch zurückgesetzt — der letzte Start
msgid "Renderer switched to GPU (compatibility) — the GPU renderer failed to start"
msgstr "Renderer auf GPU (Kompatibilität) umgestellt — der GPU-Renderer konnte nicht starten"
msgid "Audio output error"
msgstr "Audioausgabefehler"
msgid "Direct ALSA device access is blocked inside Flatpak/Snap — switch the audio backend to PipeWire or System Default"
msgstr "Direkter ALSA-Gerätezugriff ist in Flatpak/Snap blockiert — Audio-Backend auf PipeWire oder Systemstandard umstellen"