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
1 changed files with 3 additions and 2 deletions

View File

@ -104,6 +104,7 @@ protected override void LoadSamples()
{
Volume = { Value = 0 },
Looping = true,
Frequency = { Value = 1.0f }
});
}
}
@ -228,8 +229,8 @@ protected override void Update()
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()