From c1ea73d571bd3ecfbdad92a4c7e77bedd9fac188 Mon Sep 17 00:00:00 2001 From: Kostas Chatzikokolakis Date: Sun, 27 Apr 2025 03:12:02 +0300 Subject: [PATCH] Add debug message about concatenating announcement stream (#2149) --- music_assistant/controllers/streams.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/music_assistant/controllers/streams.py b/music_assistant/controllers/streams.py index 3bdb7541..ed6f5200 100644 --- a/music_assistant/controllers/streams.py +++ b/music_assistant/controllers/streams.py @@ -928,9 +928,9 @@ class StreamsController(CoreController): # For this to be effective the player itself needs to be able to start playback fast. # If the returned stream is used as input to ffmpeg we should pass -probesize 8096. # - # Finally we also need to make sure we don't make other blocking requests to the TTS - # data, eg to get the duration (async_parse_tags). - # + # Finally, if the output_format is non-PCM, raw concatenation can be problematic. + # So far players seem to tolerate this, but it might break some player in the future. + async for chunk in get_ffmpeg_stream( audio_input=ANNOUNCE_ALERT_FILE, input_format=AudioFormat(content_type=ContentType.try_parse(ANNOUNCE_ALERT_FILE)), -- 2.34.1