Some code cleanup
This commit is contained in:
1 parent
9addfa0957
commit
7ae34d6c08
2 files changed
+10
-13
No files matched your search
@@ -31,22 +31,14 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
public static void Init()
|
public static void Init()
|
||||||
{
|
{
|
||||||
foreach(string path in Helper.ListFiles(CSettings.sFolderBackgroundMusic, "*.mp3", true, true))
|
List<string> templist = new List<string>();
|
||||||
|
|
||||||
|
foreach(string ending in CSettings.MusicFileTypes)
|
||||||
{
|
{
|
||||||
_BGMusicFileNames.Add(new PlaylistElement(path));
|
templist.AddRange(Helper.ListFiles(CSettings.sFolderBackgroundMusic, ending, true, true));
|
||||||
}
|
}
|
||||||
|
|
||||||
foreach(string path in Helper.ListFiles(CSettings.sFolderBackgroundMusic, "*.ogg", true, true))
|
foreach (string path in templist)
|
||||||
{
|
|
||||||
_BGMusicFileNames.Add(new PlaylistElement(path));
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach(string path in Helper.ListFiles(CSettings.sFolderBackgroundMusic, "*.wma", true, true))
|
|
||||||
{
|
|
||||||
_BGMusicFileNames.Add(new PlaylistElement(path));
|
|
||||||
}
|
|
||||||
|
|
||||||
foreach(string path in Helper.ListFiles(CSettings.sFolderBackgroundMusic, "*.wav", true, true))
|
|
||||||
{
|
{
|
||||||
_BGMusicFileNames.Add(new PlaylistElement(path));
|
_BGMusicFileNames.Add(new PlaylistElement(path));
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -112,6 +112,11 @@ namespace Vocaluxe.Base
|
|||||||
|
|
||||||
public const float BackgroundMusicFadeTime = 0.5f;
|
public const float BackgroundMusicFadeTime = 0.5f;
|
||||||
|
|
||||||
|
public static List<string> MusicFileTypes = new List<string>()
|
||||||
|
{
|
||||||
|
"*.mp3","*.wma","*.ogg","*.wav"
|
||||||
|
};
|
||||||
|
|
||||||
public static string GetVersionText()
|
public static string GetVersionText()
|
||||||
{
|
{
|
||||||
string sVersion = "v" + iVersionMajor.ToString() + "." +
|
string sVersion = "v" + iVersionMajor.ToString() + "." +
|
||||||
|
|||||||
Reference in new issue
Block a user