fix(spectrum): reset analyser on station change and retry SYNC
This commit is contained in:
1 parent
d2b4f1bf64
commit
ca45303386
2 files changed
+221
-42
No files matched your search
@@ -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)
|
||||
|
||||
|
||||
Reference in new issue
Block a user