Fix slider sliding samples allocation

This commit is contained in:
Andrei Zavatski 2024-01-25 04:06:15 +03:00
parent b272d34960
commit 21b11092d6

View File

@ -239,11 +239,11 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
if (Tracking.Value && Time.Current >= HitObject.StartTime) if (Tracking.Value && Time.Current >= HitObject.StartTime)
{ {
// keep the sliding sample playing at the current tracking position // keep the sliding sample playing at the current tracking position
if (!slidingSample.IsPlaying) if (!slidingSample.RequestedPlaying)
slidingSample.Play(); slidingSample.Play();
slidingSample.Balance.Value = CalculateSamplePlaybackBalance(CalculateDrawableRelativePosition(Ball)); slidingSample.Balance.Value = CalculateSamplePlaybackBalance(CalculateDrawableRelativePosition(Ball));
} }
else if (slidingSample.IsPlaying) else if (slidingSample.IsPlaying || slidingSample.RequestedPlaying)
slidingSample.Stop(); slidingSample.Stop();
} }
} }