mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 12:02:55 +08:00
Add special SliderBar sound behaviour when at extents.
This commit is contained in:
parent
d6fa51dc5c
commit
2964c04c14
@ -87,6 +87,17 @@ namespace osu.Game.Graphics.UserInterface
|
||||
return;
|
||||
lastSampleTime = Clock.CurrentTime;
|
||||
sample.Frequency.Value = 1 + NormalizedValue * 0.2f;
|
||||
|
||||
switch (NormalizedValue)
|
||||
{
|
||||
case 0:
|
||||
sample.Frequency.Value -= 0.4f;
|
||||
break;
|
||||
case 1:
|
||||
sample.Frequency.Value += 0.4f;
|
||||
break;
|
||||
}
|
||||
|
||||
sample.Play();
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user