From: marcelveldt Date: Mon, 14 Oct 2019 16:56:57 +0000 (+0200) Subject: Update http_streamer.py X-Git-Url: https://git.kitaultman.com/?a=commitdiff_plain;h=a4493186c3b6cab3bbe6e3056eac2d1762d754ab;p=music-assistant-server.git Update http_streamer.py debugging --- diff --git a/music_assistant/http_streamer.py b/music_assistant/http_streamer.py index 340d853c..20aebfa4 100755 --- a/music_assistant/http_streamer.py +++ b/music_assistant/http_streamer.py @@ -101,8 +101,11 @@ class HTTPStreamer(): fade_bytes = int(sample_rate * 4 * 2 * fade_length) else: fade_bytes = int(sample_rate * 4 * 2) + print("sample rate: %s" % sample_rate) + print("fade_bytes: %s" % fade_bytes) pcm_args = 'raw -b 32 -c 2 -e signed-integer -r %s' % sample_rate - args = 'sox -V3 -t %s - -t flac -C 0 -' % pcm_args + args = 'sox -t %s - -t flac -C 0 -' % pcm_args + print(args) sox_proc = await asyncio.create_subprocess_shell(args, stdin=asyncio.subprocess.PIPE, stdout=asyncio.subprocess.PIPE)