1
0
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:
Bartłomiej Dach
2025-08-18 09:09:34 +02:00
Unverified
parent 59ec6ed2eb
commit d26f31b71d
+13 -2
View File
@@ -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();
}
}
}
}