From: Marcel van der Veldt Date: Fri, 19 Dec 2025 13:41:43 +0000 (+0100) Subject: Fix too much delay in announcement between chime and message X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=46d2764e7636122b35a0839516c184ff9b30fc3e;p=music-assistant-server.git Fix too much delay in announcement between chime and message --- diff --git a/music_assistant/controllers/streams/streams_controller.py b/music_assistant/controllers/streams/streams_controller.py index a25ccf71..676f9456 100644 --- a/music_assistant/controllers/streams/streams_controller.py +++ b/music_assistant/controllers/streams/streams_controller.py @@ -1242,7 +1242,7 @@ class StreamsController(CoreController): # pad silence while we're waiting for the announcement to be ready while announcement_data.empty(): yield b"\0" * int( - pcm_format.sample_rate * (pcm_format.bit_depth / 8) * pcm_format.channels + pcm_format.sample_rate * (pcm_format.bit_depth / 8) * pcm_format.channels * 0.1 ) await asyncio.sleep(0.1) # stream announcement