mirror of
https://github.com/osukey/osukey.git
synced 2025-07-02 00:40:09 +09:00
Fix one more instance of incorrect playback/frequency set order
This commit is contained in:
@ -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)
|
||||||
|
Reference in New Issue
Block a user