Update display of no length
This commit is contained in:
1 parent
235ce266e5
commit
9695e98bbb
2 files changed
+4
-1
No files matched your search
@@ -523,6 +523,7 @@ namespace VocaluxeLib.Menu.SongMenu
|
|||||||
if (song == null)
|
if (song == null)
|
||||||
return;
|
return;
|
||||||
|
|
||||||
|
//TODO: Using prescan here causes Vocaluxe to hang a bit on loading the song but we need the length below
|
||||||
int stream = CBase.Sound.Load(Path.Combine(song.Folder, song.MP3FileName), true, true);
|
int stream = CBase.Sound.Load(Path.Combine(song.Folder, song.MP3FileName), true, true);
|
||||||
|
|
||||||
float startposition = song.Preview.StartTime;
|
float startposition = song.Preview.StartTime;
|
||||||
|
|||||||
@@ -137,7 +137,7 @@ namespace VocaluxeLib.Menu.SongMenu
|
|||||||
_Tiles[i].Selected = _Locked == i + _Offset;
|
_Tiles[i].Selected = _Locked == i + _Offset;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (_Length < 0 && CBase.Sound.GetLength(_PreviewSongStream) > 0 && CBase.Songs.IsInCategory())
|
if (_Length < 0 && CBase.Songs.IsInCategory() && CBase.Sound.GetLength(_PreviewSongStream) > 0)
|
||||||
_UpdateLength(CBase.Songs.GetVisibleSong(_PreviewId));
|
_UpdateLength(CBase.Songs.GetVisibleSong(_PreviewId));
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -215,6 +215,8 @@ namespace VocaluxeLib.Menu.SongMenu
|
|||||||
_SongLength.Text = min.ToString("00") + ":" + sec.ToString("00");
|
_SongLength.Text = min.ToString("00") + ":" + sec.ToString("00");
|
||||||
_Length = time;
|
_Length = time;
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
_SongLength.Text = "...";
|
||||||
}
|
}
|
||||||
|
|
||||||
public override void OnShow()
|
public override void OnShow()
|
||||||
|
|||||||
Reference in new issue
Block a user