mirror of
https://github.com/ppy/osu.git
synced 2026-05-26 05:19:56 +08:00
Unapply replay playback speed when going to results
closes https://github.com/ppy/osu/issues/34700
This commit is contained in:
@@ -197,8 +197,7 @@ namespace osu.Game.Screens.Play
|
||||
|
||||
public override void OnSuspending(ScreenTransitionEvent e)
|
||||
{
|
||||
// safety against filters or samples from the indicator playing long after the screen is exited
|
||||
failIndicator.RemoveAndDisposeImmediately();
|
||||
stopAllAudioEffects();
|
||||
base.OnSuspending(e);
|
||||
}
|
||||
|
||||
@@ -208,5 +207,17 @@ namespace osu.Game.Screens.Play
|
||||
failIndicator.RemoveAndDisposeImmediately();
|
||||
return base.OnExiting(e);
|
||||
}
|
||||
|
||||
private void stopAllAudioEffects()
|
||||
{
|
||||
// safety against filters or samples from the indicator playing long after the screen is exited
|
||||
failIndicator.RemoveAndDisposeImmediately();
|
||||
|
||||
if (GameplayClockContainer is MasterGameplayClockContainer master)
|
||||
{
|
||||
playbackSettings.UserPlaybackRate.UnbindFrom(master.UserPlaybackRate);
|
||||
master.UserPlaybackRate.SetDefault();
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user