1
0
mirror of https://github.com/ppy/osu.git synced 2025-01-13 14:52:57 +08:00

Use BeatSyncClock

This commit is contained in:
Henry Lin 2021-07-20 10:30:40 +08:00
parent 9ea1f5900a
commit a387d8df74

View File

@ -374,8 +374,7 @@ namespace osu.Game.Rulesets.Osu.Mods
int timeSignature = (int)timingPoint.TimeSignature;
// play metronome from one measure before the first object.
// TODO: Use BeatSyncClock from https://github.com/ppy/osu/pull/13894.
if (Clock.CurrentTime < firstHitTime - timingPoint.BeatLength * timeSignature)
if (BeatSyncClock.CurrentTime < firstHitTime - timingPoint.BeatLength * timeSignature)
return;
sample.Frequency.Value = beatIndex % timeSignature == 0 ? 1 : 0.5f;