Reworked the Config system
This commit is contained in:
@@ -137,10 +137,13 @@ public class MusicPlayer
|
||||
|
||||
public bool Enqueue(string musicName)
|
||||
{
|
||||
var minfo = Variables._MusicDatabase.GetMusicInfo(musicName);
|
||||
if (minfo is null) return false;
|
||||
var musicInfo = Variables._MusicDatabase?.Get(musicName);
|
||||
if (musicInfo is null)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
|
||||
MusicQueue.Enqueue(minfo);
|
||||
MusicQueue.Enqueue(musicInfo);
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -149,11 +152,6 @@ public class MusicPlayer
|
||||
isPlaying = false;
|
||||
}
|
||||
|
||||
public void SetVolume(float volume)
|
||||
{
|
||||
// set volume
|
||||
}
|
||||
|
||||
private static Process? CreateStream(string? fileName, string path)
|
||||
{
|
||||
return Process.Start(new ProcessStartInfo
|
||||
|
||||
Reference in New Issue
Block a user