Fix too much delay in announcement between chime and message
authorMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 19 Dec 2025 13:41:43 +0000 (14:41 +0100)
committerMarcel van der Veldt <m.vanderveldt@outlook.com>
Fri, 19 Dec 2025 13:41:43 +0000 (14:41 +0100)
music_assistant/controllers/streams/streams_controller.py

index a25ccf71cad2dbbc3cae931ed9f395d0ddc8973f..676f94562b8a6211e48f5752aa59d7665727011b 100644 (file)
@@ -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