fix(spectrum): reset analyser on station change and retry SYNC

This commit is contained in:
beefcarver committed 2026-11-01 09:45:43 -05:00
1 parent d2b4f1bf64
commit ca45303386
2 files changed
+221 -42

No files matched your search

+3
View File
@@ -324,6 +324,9 @@ class SomaFMApp(App[None]):
self._set_notice("audio disabled (--no-audio)", 5)
return
# A tune gets a clean analyser: forget any previous capture failure and
# clear the old station's bars before the new stream starts.
self.spectrum.reset()
self._resolve_and_play(station.id)
self._fetch_history(station.id)