mirror of
https://github.com/ppy/osu.git
synced 2025-01-15 16:42:57 +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;
|
return;
|
||||||
lastSampleTime = Clock.CurrentTime;
|
lastSampleTime = Clock.CurrentTime;
|
||||||
sample.Frequency.Value = 1 + NormalizedValue * 0.2f;
|
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();
|
sample.Play();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user