done testing
This commit is contained in:
parent
d55a9efe9b
commit
74ad7b32bd
@ -204,16 +204,7 @@ namespace NadekoBot.Services.Music
|
|||||||
&& (MaxPlaytimeSeconds <= 0 || MaxPlaytimeSeconds >= CurrentTime.TotalSeconds))
|
&& (MaxPlaytimeSeconds <= 0 || MaxPlaytimeSeconds >= CurrentTime.TotalSeconds))
|
||||||
{
|
{
|
||||||
AdjustVolume(buffer, Volume);
|
AdjustVolume(buffer, Volume);
|
||||||
if (VoiceChannel.GuildId == 117523346618318850)
|
|
||||||
await pcm.WriteAsync(buffer, 0, bytesRead, cancelToken).ConfigureAwait(false);
|
await pcm.WriteAsync(buffer, 0, bytesRead, cancelToken).ConfigureAwait(false);
|
||||||
else
|
|
||||||
{
|
|
||||||
for (int i = 0; i < 38400; i++)
|
|
||||||
{
|
|
||||||
//kek
|
|
||||||
}
|
|
||||||
await Task.Delay(20);
|
|
||||||
}
|
|
||||||
unchecked { _bytesSent += bytesRead; }
|
unchecked { _bytesSent += bytesRead; }
|
||||||
|
|
||||||
await (pauseTaskSource?.Task ?? Task.CompletedTask);
|
await (pauseTaskSource?.Task ?? Task.CompletedTask);
|
||||||
|
@ -55,7 +55,7 @@ namespace NadekoBot.Services.Music
|
|||||||
|
|
||||||
Directory.CreateDirectory(MusicDataPath);
|
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)
|
public float GetDefaultVolume(ulong guildId)
|
||||||
|
Loading…
Reference in New Issue
Block a user