mirror of
https://github.com/ppy/osu.git
synced 2025-01-28 04:02:57 +08:00
Use a slightly more appropriate metronome sound
This commit is contained in:
parent
e7b78b1ea5
commit
c38590f1ff
@ -353,23 +353,24 @@ namespace osu.Game.Rulesets.Osu.Mods
|
|||||||
Divisor = 1;
|
Divisor = 1;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
[BackgroundDependencyLoader]
|
||||||
|
private void load()
|
||||||
|
{
|
||||||
|
InternalChildren = new Drawable[]
|
||||||
|
{
|
||||||
|
sample = new PausableSkinnableSound(new SampleInfo("Gameplay/catch-banana"))
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
protected override void OnNewBeat(int beatIndex, TimingControlPoint timingPoint, EffectControlPoint effectPoint, ChannelAmplitudes amplitudes)
|
protected override void OnNewBeat(int beatIndex, TimingControlPoint timingPoint, EffectControlPoint effectPoint, ChannelAmplitudes amplitudes)
|
||||||
{
|
{
|
||||||
base.OnNewBeat(beatIndex, timingPoint, effectPoint, amplitudes);
|
base.OnNewBeat(beatIndex, timingPoint, effectPoint, amplitudes);
|
||||||
|
|
||||||
if (!IsBeatSyncedWithTrack) return;
|
if (!IsBeatSyncedWithTrack) return;
|
||||||
|
|
||||||
|
sample.Frequency.Value = beatIndex % (int)timingPoint.TimeSignature == 0 ? 1 : 0.5f;
|
||||||
sample?.Play();
|
sample?.Play();
|
||||||
}
|
}
|
||||||
|
|
||||||
[BackgroundDependencyLoader]
|
|
||||||
private void load()
|
|
||||||
{
|
|
||||||
InternalChildren = new Drawable[]
|
|
||||||
{
|
|
||||||
sample = new PausableSkinnableSound(new SampleInfo("Gameplay/nightcore-hat")) // todo: use another sample
|
|
||||||
};
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
#endregion
|
#endregion
|
||||||
|
Loading…
Reference in New Issue
Block a user