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

@@ -4353,3 +4353,9 @@ msgstr "レンダラー設定を自動に戻しました — 前回の起動が
msgid "Renderer switched to GPU (compatibility) — the GPU renderer failed to start"
msgstr "レンダラーをGPU(互換)に切り替えました — GPUレンダラーを起動できませんでした"
msgid "Audio output error"
msgstr "オーディオ出力エラー"
msgid "Direct ALSA device access is blocked inside Flatpak/Snap — switch the audio backend to PipeWire or System Default"
msgstr "Flatpak/Snap 内では ALSA デバイスへの直接アクセスがブロックされます — オーディオバックエンドを PipeWire またはシステム既定に切り替えてください"