1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-16 11:22:55 +08:00

Remove locally-cached music controller

This commit is contained in:
smoogipoo 2020-08-11 12:27:32 +09:00
parent 327596b9d5
commit 20197e2768

View File

@ -25,16 +25,12 @@ namespace osu.Game.Tests.Visual.Gameplay
private readonly Container<DrawableStoryboard> storyboardContainer; private readonly Container<DrawableStoryboard> storyboardContainer;
private DrawableStoryboard storyboard; private DrawableStoryboard storyboard;
[Cached]
private MusicController musicController = new MusicController();
public TestSceneStoryboard() public TestSceneStoryboard()
{ {
Clock = new FramedClock(); Clock = new FramedClock();
AddRange(new Drawable[] AddRange(new Drawable[]
{ {
musicController,
new Container new Container
{ {
RelativeSizeAxes = Axes.Both, RelativeSizeAxes = Axes.Both,
@ -104,7 +100,7 @@ namespace osu.Game.Tests.Visual.Gameplay
storyboard.Passing = false; storyboard.Passing = false;
storyboardContainer.Add(storyboard); storyboardContainer.Add(storyboard);
decoupledClock.ChangeSource(musicController.CurrentTrack); decoupledClock.ChangeSource(MusicController.CurrentTrack);
} }
private void loadStoryboardNoVideo() private void loadStoryboardNoVideo()
@ -127,7 +123,7 @@ namespace osu.Game.Tests.Visual.Gameplay
storyboard = sb.CreateDrawable(Beatmap.Value); storyboard = sb.CreateDrawable(Beatmap.Value);
storyboardContainer.Add(storyboard); storyboardContainer.Add(storyboard);
decoupledClock.ChangeSource(musicController.CurrentTrack); decoupledClock.ChangeSource(MusicController.CurrentTrack);
} }
} }
} }