From 2afa568a97294f449f9e7b8090ad418021c837fd Mon Sep 17 00:00:00 2001 From: mcencini Date: Thu, 8 Oct 2026 17:28:12 +0200 Subject: [PATCH] Play the sound a console sends as its own message The console sends each span's sound when its clock reaches the span, as a message of its own ({"sound", "rate", "start"}), and the span's clock after it. The scan's handler played sound only from a clock message, so it played none. Co-Authored-By: Claude Opus 5.5 --- marge/seq/pulserver_console.py | 7 ++++--- tests/test_pulserver_console.py | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/marge/seq/pulserver_console.py b/marge/seq/pulserver_console.py index 4f255fa..bfb3f5e 100644 --- a/marge/seq/pulserver_console.py +++ b/marge/seq/pulserver_console.py @@ -632,12 +632,13 @@ def received(message: dict) -> None: if "preparing" in message: self.prepared += 1 _show_preparing(plugin, message["preparing"]) + elif "sound" in message: + if SPEAKER is not None: + pcm = np.frombuffer(base64.b64decode(message["sound"]), dtype="