From 684dba0d9c3b6de5a13a7876151595f995daba7c Mon Sep 17 00:00:00 2001 From: Master Kwoth Date: Tue, 4 Jul 2017 00:21:45 +0200 Subject: [PATCH] added some debugging --- src/NadekoBot/Services/Music/SongBuffer.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/NadekoBot/Services/Music/SongBuffer.cs b/src/NadekoBot/Services/Music/SongBuffer.cs index 7f79eac5..5ff91e88 100644 --- a/src/NadekoBot/Services/Music/SongBuffer.cs +++ b/src/NadekoBot/Services/Music/SongBuffer.cs @@ -27,7 +27,7 @@ namespace NadekoBot.Services.Music this.p = Process.Start(new ProcessStartInfo { FileName = "ffmpeg", - Arguments = $"-i {songUri} -f s16le -ar 48000 -vn -ac 2 pipe:1 -loglevel quiet", + Arguments = $"-i {songUri} -f s16le -ar 48000 -vn -ac 2 pipe:1 -loglevel error -threads 0", UseShellExecute = false, RedirectStandardOutput = true, RedirectStandardError = true, @@ -78,7 +78,7 @@ namespace NadekoBot.Services.Music lock (locker) if (_outStream.Length > 200_000 || bytesRead == 0) if (toReturn.TrySetResult(true)) - _log.Info("Prebuffering finished"); + _log.Info("Prebuffering finished in {0}", sw.Elapsed.TotalSeconds.ToString("F2")); //_log.Info(_outStream.Length); await Task.Delay(10);