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:
parent
910fe3e9f8
commit
63d2ac66d2
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user