Fix unintended song loop due to api change
This commit is contained in:
1 parent
292a9f3c69
commit
e908f923e8
6 files changed
+10
-15
No files matched your search
@@ -256,7 +256,7 @@ namespace VocaluxeLib
|
||||
|
||||
public interface ISound
|
||||
{
|
||||
int Load(string soundFile, bool prescan);
|
||||
int Load(string soundFile, bool loop = false, bool prescan = false);
|
||||
void SetPosition(int soundStream, float newPosition);
|
||||
void Play(int soundStream);
|
||||
void Fade(int soundStream, float targetVolume, float duration);
|
||||
|
||||
@@ -523,7 +523,7 @@ namespace VocaluxeLib.Menu.SongMenu
|
||||
if (song == null)
|
||||
return;
|
||||
|
||||
int stream = CBase.Sound.Load(Path.Combine(song.Folder, song.MP3FileName), true);
|
||||
int stream = CBase.Sound.Load(Path.Combine(song.Folder, song.MP3FileName), true, true);
|
||||
|
||||
float startposition = song.Preview.StartTime;
|
||||
float length = CBase.Sound.GetLength(stream);
|
||||
|
||||
Reference in new issue
Block a user