Debug: check stream active state

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-03-29 20:21:43 -04:00
parent 938024bfa2
commit c57e29fe28
+2 -1
View File
@@ -367,7 +367,8 @@ class LiveTUI:
first_wave = next(iter(channel._cache.values()))
peak = abs(first_wave).max()
cache_peek = f" wpeak={peak:.3f}"
self.log(f" key:{key} v={nv} vol={vol} lv={lv:.3f}{cache_peek}", 2)
stream_ok = "stream:OK" if self.engine._stream and self.engine._stream.active else "stream:OFF"
self.log(f" key:{key} v={nv} vol={vol} lv={lv:.3f}{cache_peek} {stream_ok}", 2)
def _off(k=key):
time.sleep(0.25)
self.engine.keyboard_note(k, on=False)