1
0
mirror of https://github.com/ppy/osu.git synced 2024-11-11 10:33:30 +08:00

Stop music on entering latency certification screen

This commit is contained in:
Dean Herbert 2022-06-10 18:20:15 +09:00
parent 5c7d29cd31
commit 5deaa42e9f

View File

@ -87,6 +87,9 @@ namespace osu.Game.Screens.Utility
[Resolved]
private GameHost host { get; set; } = null!;
[Resolved]
private MusicController musicController { get; set; } = null!;
public LatencyCertifierScreen()
{
InternalChildren = new Drawable[]
@ -166,6 +169,8 @@ Do whatever you need to try and perceive the difference in latency, then choose
config.SetValue(FrameworkSetting.FrameSync, FrameSync.Unlimited);
host.UpdateThread.ActiveHz = target_host_update_frames;
host.AllowBenchmarkUnlimitedFrames = true;
musicController.Stop();
}
public override bool OnExiting(ScreenExitEvent e)