done testing

This commit is contained in:
Master Kwoth 2017-07-07 13:40:17 +02:00
parent d55a9efe9b
commit 74ad7b32bd
2 changed files with 2 additions and 11 deletions

View File

@ -204,16 +204,7 @@ namespace NadekoBot.Services.Music
&& (MaxPlaytimeSeconds <= 0 || MaxPlaytimeSeconds >= CurrentTime.TotalSeconds))
{
AdjustVolume(buffer, Volume);
if (VoiceChannel.GuildId == 117523346618318850)
await pcm.WriteAsync(buffer, 0, bytesRead, cancelToken).ConfigureAwait(false);
else
{
for (int i = 0; i < 38400; i++)
{
//kek
}
await Task.Delay(20);
}
await pcm.WriteAsync(buffer, 0, bytesRead, cancelToken).ConfigureAwait(false);
unchecked { _bytesSent += bytesRead; }
await (pauseTaskSource?.Task ?? Task.CompletedTask);

View File

@ -55,7 +55,7 @@ namespace NadekoBot.Services.Music
Directory.CreateDirectory(MusicDataPath);
_t = new Timer(_ => _log.Info(MusicPlayers.Count(x => x.Value.Current.Current != null)), null, TimeSpan.FromSeconds(5), TimeSpan.FromSeconds(5));
//_t = new Timer(_ => _log.Info(MusicPlayers.Count(x => x.Value.Current.Current != null)), null, TimeSpan.FromSeconds(5), TimeSpan.FromSeconds(5));
}
public float GetDefaultVolume(ulong guildId)