done testing
This commit is contained in:
parent
d55a9efe9b
commit
74ad7b32bd
@ -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);
|
||||
|
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user