Some code cleanup

This commit is contained in:
Stephan Sundermann committed 2012-03-05 17:02:35 +01:00
1 parent 9addfa0957
commit 7ae34d6c08
2 files changed
+10 -13

No files matched your search

+5 -13
View File
@@ -31,22 +31,14 @@ namespace Vocaluxe.Base
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))
{
_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))
foreach (string path in templist)
{
_BGMusicFileNames.Add(new PlaylistElement(path));
}
+5
View File
@@ -111,6 +111,11 @@ namespace Vocaluxe.Base
public static bool TabNavigation = false;
public const float BackgroundMusicFadeTime = 0.5f;
public static List<string> MusicFileTypes = new List<string>()
{
"*.mp3","*.wma","*.ogg","*.wav"
};
public static string GetVersionText()
{