From 57bb51e41caaf17ff8087d2ba56d6c9fd4f9d9c1 Mon Sep 17 00:00:00 2001 From: Alexander Eckart Date: Fri, 14 Jun 2013 23:06:14 +0200 Subject: [PATCH] preview start -0.5s --- VocaluxeLib/Menu/SongMenu/CSongMenuFramework.cs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/VocaluxeLib/Menu/SongMenu/CSongMenuFramework.cs b/VocaluxeLib/Menu/SongMenu/CSongMenuFramework.cs index b2353579..36e3977d 100644 --- a/VocaluxeLib/Menu/SongMenu/CSongMenuFramework.cs +++ b/VocaluxeLib/Menu/SongMenu/CSongMenuFramework.cs @@ -627,7 +627,10 @@ namespace VocaluxeLib.Menu.SongMenu if (Math.Abs(startposition) < 0.001) startposition = CBase.Sound.GetLength(stream) / 4f; - CBase.Sound.SetPosition(stream, startposition); + if (startposition >= 0.5f) + startposition -= 0.5f; + + CBase.Sound.SetPosition(stream, startposition - 0.5f); CBase.Sound.Play(stream); CBase.Sound.Fade(stream, 100f, 3f); _Streams.Add(stream);