1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 17:32:54 +08:00

Fix single threaded seeking not working due to unnecessary seek call

This commit is contained in:
Dean Herbert 2020-12-10 17:42:28 +09:00
parent a5e2509d52
commit 679a550d83

View File

@ -154,13 +154,16 @@ namespace osu.Game.Screens.Play
public void Start() public void Start()
{ {
// Seeking the decoupled clock to its current time ensures that its source clock will be seeked to the same time if (!adjustableClock.IsRunning)
// This accounts for the audio clock source potentially taking time to enter a completely stopped state {
Seek(GameplayClock.CurrentTime); // Seeking the decoupled clock to its current time ensures that its source clock will be seeked to the same time
adjustableClock.Start(); // This accounts for the audio clock source potentially taking time to enter a completely stopped state
IsPaused.Value = false; Seek(GameplayClock.CurrentTime);
this.TransformBindableTo(pauseFreqAdjust, 1, 200, Easing.In); this.TransformBindableTo(pauseFreqAdjust, 1, 200, Easing.In);
adjustableClock.Start();
}
IsPaused.Value = false;
} }
/// <summary> /// <summary>