preview start -0.5s
This commit is contained in:
1 parent
2bdad961af
commit
57bb51e41c
1 file changed
+4
-1
@@ -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);
|
||||
|
||||
Reference in new issue
Block a user