1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-07 20:03:13 +08:00

Fix one more instance of incorrect playback/frequency set order

This commit is contained in:
Dean Herbert 2021-07-02 15:52:20 +09:00
parent 910fe3e9f8
commit 63d2ac66d2

View File

@ -159,12 +159,14 @@ namespace osu.Game.Graphics.UserInterface
lastSampleValue = value; lastSampleValue = value;
lastSampleTime = Clock.CurrentTime; lastSampleTime = Clock.CurrentTime;
var channel = sample.Play(); var channel = sample.GetChannel();
channel.Frequency.Value = 0.99f + RNG.NextDouble(0.02f) + NormalizedValue * 0.2f; channel.Frequency.Value = 0.99f + RNG.NextDouble(0.02f) + NormalizedValue * 0.2f;
if (NormalizedValue == 0 || NormalizedValue == 1) if (NormalizedValue == 0 || NormalizedValue == 1)
channel.Frequency.Value -= 0.5f; channel.Frequency.Value -= 0.5f;
channel.Play();
} }
private void updateTooltipText(T value) private void updateTooltipText(T value)