mirror of
https://github.com/Stone-Red-Code/HyperbolicDownloader.git
synced 2026-09-08 15:56:23 +02:00
Update/Replace NuGet libraries
This commit is contained in:
@@ -1,12 +1,12 @@
|
||||
using HyperbolicDownloaderApi.FileProcessing;
|
||||
using CuteUtils;
|
||||
|
||||
using HyperbolicDownloaderApi.FileProcessing;
|
||||
using HyperbolicDownloaderApi.Managment;
|
||||
using HyperbolicDownloaderApi.Networking;
|
||||
|
||||
using NAudio.Utils;
|
||||
using NAudio.Wave;
|
||||
|
||||
using Stone_Red_Utilities.StringExtentions;
|
||||
|
||||
using System.Diagnostics;
|
||||
using System.Net;
|
||||
using System.Net.Sockets;
|
||||
@@ -238,9 +238,9 @@ public class StreamingCommands(HostsManager hostsManager)
|
||||
hostsManager.SaveHosts();
|
||||
}
|
||||
|
||||
private bool IsBufferNearlyFull(BufferedWaveProvider bufferedWaveProvider)
|
||||
private static bool IsBufferNearlyFull(BufferedWaveProvider bufferedWaveProvider)
|
||||
{
|
||||
return bufferedWaveProvider != null &&
|
||||
return bufferedWaveProvider is not null &&
|
||||
bufferedWaveProvider.BufferLength - bufferedWaveProvider.BufferedBytes
|
||||
< bufferedWaveProvider.WaveFormat.AverageBytesPerSecond / 4;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user