Fix velocity test failing with no audio device

This commit is contained in:
Dan Balasescu
2022-11-03 13:59:22 +09:00
parent 92dc3a3c02
commit fc191807c6
2 changed files with 7 additions and 9 deletions

View File

@ -27,7 +27,7 @@ namespace osu.Game.Screens.Edit
private readonly Bindable<Track> track = new Bindable<Track>();
public double TrackLength => track.Value?.Length ?? 60000;
public double TrackLength => track.Value?.IsLoaded == true ? track.Value.Length : 60000;
public ControlPointInfo ControlPointInfo => Beatmap.ControlPointInfo;