1
0
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:
Dean Herbert 2017-04-12 12:06:56 +09:00
parent d6fa51dc5c
commit 2964c04c14
No known key found for this signature in database
GPG Key ID: 46D71BF4958ABB49

View File

@ -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();
}