From: Marcel van der Veldt Date: Sat, 25 Oct 2025 19:50:19 +0000 (+0200) Subject: Small tweaks to buffering X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=39e8682fbe537a3e4468b4a446d7424f3f6ef0ea;p=music-assistant-server.git Small tweaks to buffering --- diff --git a/music_assistant/controllers/streams.py b/music_assistant/controllers/streams.py index 8982606f..9ade5ea5 100644 --- a/music_assistant/controllers/streams.py +++ b/music_assistant/controllers/streams.py @@ -490,7 +490,7 @@ class StreamsController(CoreController): # restarting (or completely failing) the audio stream by keeping the buffer short. # this is reported to be an issue especially with Chromecast players. # see for example: https://github.com/music-assistant/support/issues/3717 - extra_input_args=["-readrate", "1.0", "-readrate_initial_burst", "2"], + extra_input_args=["-readrate", "1.0", "-readrate_initial_burst", "5"], ): try: await resp.write(chunk) @@ -804,7 +804,7 @@ class StreamsController(CoreController): # like https hosts and it also offers the pre-announce 'bell' return f"{self.base_url}/announcement/{player_id}.{content_type.value}" - @use_buffer(30, 2) + @use_buffer(30, 5) async def get_queue_flow_stream( self, queue: PlayerQueue, @@ -1229,7 +1229,7 @@ class StreamsController(CoreController): loop = asyncio.get_running_loop() await loop.run_in_executor(None, gc.collect) - @use_buffer(30, 2) + @use_buffer(30, 5) async def get_queue_item_stream_with_smartfade( self, queue_item: QueueItem,