1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-14 21:43:04 +08:00

Inline rolling duration

This commit is contained in:
Dean Herbert 2022-07-23 02:38:00 +09:00
parent 475679ca66
commit db632c0d6e

View File

@ -93,11 +93,9 @@ namespace osu.Game.Screens.Ranking.Expanded
const double tick_volume_start = 0.5f; const double tick_volume_start = 0.5f;
const double tick_volume_end = 1.0f; const double tick_volume_end = 1.0f;
double tickDuration = RollingDuration;
this.TransformBindableTo(tickPlaybackRate, tick_debounce_rate_start); this.TransformBindableTo(tickPlaybackRate, tick_debounce_rate_start);
this.TransformBindableTo(tickPlaybackRate, tick_debounce_rate_end, tickDuration, Easing.OutSine); this.TransformBindableTo(tickPlaybackRate, tick_debounce_rate_end, RollingDuration, Easing.OutSine);
sampleTick.VolumeTo(tick_volume_start).Then().VolumeTo(tick_volume_end, tickDuration, Easing.OutSine); sampleTick.VolumeTo(tick_volume_start).Then().VolumeTo(tick_volume_end, RollingDuration, Easing.OutSine);
} }
} }
} }