mirror of https://github.com/ppy/osu
Remove locally-cached music controller
This commit is contained in:
parent
327596b9d5
commit
20197e2768
|
@ -25,16 +25,12 @@ public class TestSceneStoryboard : OsuTestScene
|
|||
private readonly Container<DrawableStoryboard> storyboardContainer;
|
||||
private DrawableStoryboard storyboard;
|
||||
|
||||
[Cached]
|
||||
private MusicController musicController = new MusicController();
|
||||
|
||||
public TestSceneStoryboard()
|
||||
{
|
||||
Clock = new FramedClock();
|
||||
|
||||
AddRange(new Drawable[]
|
||||
{
|
||||
musicController,
|
||||
new Container
|
||||
{
|
||||
RelativeSizeAxes = Axes.Both,
|
||||
|
@ -104,7 +100,7 @@ private void loadStoryboard(WorkingBeatmap working)
|
|||
storyboard.Passing = false;
|
||||
|
||||
storyboardContainer.Add(storyboard);
|
||||
decoupledClock.ChangeSource(musicController.CurrentTrack);
|
||||
decoupledClock.ChangeSource(MusicController.CurrentTrack);
|
||||
}
|
||||
|
||||
private void loadStoryboardNoVideo()
|
||||
|
@ -127,7 +123,7 @@ private void loadStoryboardNoVideo()
|
|||
storyboard = sb.CreateDrawable(Beatmap.Value);
|
||||
|
||||
storyboardContainer.Add(storyboard);
|
||||
decoupledClock.ChangeSource(musicController.CurrentTrack);
|
||||
decoupledClock.ChangeSource(MusicController.CurrentTrack);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue