From: Santiago Soto Date: Mon, 1 Jul 2024 22:27:10 +0000 (-0300) Subject: Add dryout_ms parameter to snap_stream X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=dc5f224444381168666d9b6fdfa109955c88fc85;p=music-assistant-server.git Add dryout_ms parameter to snap_stream --- 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