Fix for background-music-files.

This commit is contained in:
Florian Küpper committed 2014-08-05 11:41:20 +02:00
1 parent 3612b9244b
commit 240f47090d
2 files changed
+25 -5

No files matched your search

+10 -5
View File
@@ -270,11 +270,16 @@ namespace Vocaluxe.Base
_SongPlayer.Play();
//otherwhise load
//Seek to #Start-Tag, if found
float start = 0f;
if (_CurrentPlaylistElement.Start > 0.001 && CConfig.BackgroundMusicUseStart == EOffOn.TR_CONFIG_ON)
start = _CurrentPlaylistElement.Start;
_SongPlayer.Load(CBase.Songs.GetSongByID(_CurrentPlaylistElement.SongID), start, true);
if (_BGMusicFiles.Contains(_CurrentPlaylistElement))
_SongPlayer.Load(_CurrentPlaylistElement.MusicFilePath, 0f, true);
else
{
//Seek to #Start-Tag, if found
float start = 0f;
if (_CurrentPlaylistElement.Start > 0.001 && CConfig.BackgroundMusicUseStart == EOffOn.TR_CONFIG_ON)
start = _CurrentPlaylistElement.Start;
_SongPlayer.Load(CBase.Songs.GetSongByID(_CurrentPlaylistElement.SongID), start, true);
}
}
private static void _AddOwnMusic()