Add debug message about concatenating announcement stream (#2149)
authorKostas Chatzikokolakis <kostas@chatzi.org>
Sun, 27 Apr 2025 00:12:02 +0000 (03:12 +0300)
committerGitHub <noreply@github.com>
Sun, 27 Apr 2025 00:12:02 +0000 (02:12 +0200)
music_assistant/controllers/streams.py

index 3bdb7541fc12b474c0c63d9566068c49f3934135..ed6f52008f12ba134027a936a51ad62c6c35399a 100644 (file)
@@ -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)),