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
1 changed files with 5 additions and 0 deletions

View File

@ -87,6 +87,9 @@ public class LatencyCertifierScreen : OsuScreen
[Resolved]
private GameHost host { get; set; } = null!;
[Resolved]
private MusicController musicController { get; set; } = null!;
public LatencyCertifierScreen()
{
InternalChildren = new Drawable[]
@ -166,6 +169,8 @@ public override void OnEntering(ScreenTransitionEvent e)
config.SetValue(FrameworkSetting.FrameSync, FrameSync.Unlimited);
host.UpdateThread.ActiveHz = target_host_update_frames;
host.AllowBenchmarkUnlimitedFrames = true;
musicController.Stop();
}
public override bool OnExiting(ScreenExitEvent e)