Add dryout_ms parameter to snap_stream
authorSantiago Soto <santiago@soto.uy>
Mon, 1 Jul 2024 22:27:10 +0000 (19:27 -0300)
committerSantiago Soto <santiago@soto.uy>
Mon, 1 Jul 2024 22:27:10 +0000 (19:27 -0300)
music_assistant/server/providers/snapcast/__init__.py

index c9a535bdab63918eab1c6fba80dbdfbf33d129c0..6bfc7a2ce72b065793d15a4e5216b8f300d66ddd 100644 (file)
@@ -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