From a4493186c3b6cab3bbe6e3056eac2d1762d754ab Mon Sep 17 00:00:00 2001 From: marcelveldt Date: Mon, 14 Oct 2019 18:56:57 +0200 Subject: [PATCH] Update http_streamer.py debugging --- music_assistant/http_streamer.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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) -- 2.34.1