Expose track from MusicController

This commit is contained in:
smoogipoo
2020-08-05 21:10:38 +09:00
parent 6e42b8219c
commit 5c05fe3988
39 changed files with 204 additions and 283 deletions

View File

@ -87,9 +87,9 @@ namespace osu.Game.Tests.Visual.Gameplay
private void restart()
{
MusicController.Reset();
MusicController.CurrentTrack?.Reset();
loadStoryboard(Beatmap.Value);
MusicController.Play(true);
MusicController.CurrentTrack?.Start();
}
private void loadStoryboard(WorkingBeatmap working)
@ -104,7 +104,7 @@ namespace osu.Game.Tests.Visual.Gameplay
storyboard.Passing = false;
storyboardContainer.Add(storyboard);
decoupledClock.ChangeSource(musicController.GetTrackClock());
decoupledClock.ChangeSource(musicController.CurrentTrack);
}
private void loadStoryboardNoVideo()
@ -127,7 +127,7 @@ namespace osu.Game.Tests.Visual.Gameplay
storyboard = sb.CreateDrawable(Beatmap.Value);
storyboardContainer.Add(storyboard);
decoupledClock.ChangeSource(musicController.GetTrackClock());
decoupledClock.ChangeSource(musicController.CurrentTrack);
}
}
}