Updated bootstrap and merged gitlab project

This commit is contained in:
2024-09-17 15:30:08 +03:00
parent a584423939
commit be75ef03cb
2097 changed files with 14141 additions and 148 deletions

View File

@@ -51,9 +51,6 @@ public class MusicPlayer
ffmpegPath = ffmpegPath.Replace("\\", "/");
ffmpegPath = Path.GetFullPath(ffmpegPath);
Console.WriteLine("FFMPEG Path: " + ffmpegPath);
while (MusicQueue.TryDequeue(out var dequeuedMusic))
{
CurrentlyPlaying = dequeuedMusic;
@@ -135,15 +132,9 @@ public class MusicPlayer
isPaused = false;
}
public bool Enqueue(string musicName)
public bool Enqueue(MusicInfo music)
{
var musicInfo = Variables._MusicDatabase?.Get(musicName);
if (musicInfo is null)
{
return false;
}
MusicQueue.Enqueue(musicInfo);
MusicQueue.Enqueue(music);
return true;
}