From eab8caaa0cd0b51a79fcc1b36783f6a126f2851c Mon Sep 17 00:00:00 2001 From: Huo Yaoyuan Date: Thu, 27 Oct 2016 19:51:38 +0800 Subject: [PATCH] Ensure track is playing after seek. --- osu.Game/Overlays/MusicController.cs | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/osu.Game/Overlays/MusicController.cs b/osu.Game/Overlays/MusicController.cs index 9d79c0cb37..e96050957c 100644 --- a/osu.Game/Overlays/MusicController.cs +++ b/osu.Game/Overlays/MusicController.cs @@ -266,7 +266,11 @@ namespace osu.Game.Overlays return scaledSprite; } - private void seek(float position) => CurrentTrack?.Seek(CurrentTrack.Length * position); + private void seek(float position) + { + CurrentTrack?.Seek(CurrentTrack.Length * position); + CurrentTrack?.Start(); + } //placeholder for toggling protected override void PopIn() => FadeIn(500);