From dc5f224444381168666d9b6fdfa109955c88fc85 Mon Sep 17 00:00:00 2001 From: Santiago Soto Date: Mon, 1 Jul 2024 19:27:10 -0300 Subject: [PATCH] Add dryout_ms parameter to snap_stream --- music_assistant/server/providers/snapcast/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/music_assistant/server/providers/snapcast/__init__.py b/music_assistant/server/providers/snapcast/__init__.py index c9a535bd..6bfc7a2c 100644 --- a/music_assistant/server/providers/snapcast/__init__.py +++ b/music_assistant/server/providers/snapcast/__init__.py @@ -578,7 +578,7 @@ class SnapCastProvider(PlayerProvider): result = await self._snapserver.stream_add_stream( # NOTE: setting the sampleformat to something else # (like 24 bits bit depth) does not seem to work at all! - f"tcp://0.0.0.0:{port}?name={name}&sampleformat=48000:16:2", + f"tcp://0.0.0.0:{port}?name={name}&sampleformat=48000:16:2&dryout_ms=2000", ) if "id" not in result: # if the port is already taken, the result will be an error -- 2.34.1