Fixed preview-start

This commit is contained in:
Florian Küpper committed 2015-12-19 15:25:57 +01:00
1 parent 92e8bcd9f7
commit 8e6aee71d7
1 file changed
+3 -1
+3 -1
View File
@@ -296,10 +296,12 @@ namespace Vocaluxe.Base
CSound.SetGlobalVolume(CConfig.PreviewMusicVolume);
}
bool songChanged = _CurPlayer.SongID != song.ID;
_PreviewPlayer.Load(song);
//Change song position only if song is changed or near to end
if (_CurPlayer.SongID != _PreviewPlayer.SongID && _CurPlayer.Position + 30 < _CurPlayer.Length)
if (songChanged || _CurPlayer.Position + 30 < _CurPlayer.Length)
{
float length = _PreviewPlayer.Length;
if (length < 1)