1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-14 04:02:59 +08:00

replicate osu-stable behaviour for spinningSample frequency

This commit is contained in:
Ron B 2020-08-15 21:07:44 +03:00
parent 07c25d5a78
commit 40445d0005
No known key found for this signature in database
GPG Key ID: 6F5B32DE5E5FA80C

View File

@ -104,6 +104,7 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
{
Volume = { Value = 0 },
Looping = true,
Frequency = { Value = 1.0f }
});
}
}
@ -228,8 +229,8 @@ namespace osu.Game.Rulesets.Osu.Objects.Drawables
if (HandleUserInput)
RotationTracker.Tracking = !Result.HasResult && (OsuActionInputManager?.PressedActions.Any(x => x == OsuAction.LeftButton || x == OsuAction.RightButton) ?? false);
if (spinningSample != null)
spinningSample.Frequency.Value = spinnerFrequencyModulate ? 0.5f + Progress : 0.5f;
if (spinningSample != null && spinnerFrequencyModulate)
spinningSample.Frequency.Value = 0.5f + Progress;
}
protected override void UpdateAfterChildren()