1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 01:52:55 +08:00

Revert piano reverb to a separate sample

This commit is contained in:
Shivam 2020-06-03 11:39:08 +02:00
parent 9cd66dcdef
commit d002c0c03f

View File

@ -21,6 +21,7 @@ namespace osu.Game.Screens.Menu
protected override string BeatmapFile => "welcome.osz";
private const double delay_step_two = 2142;
private SampleChannel welcome;
private SampleChannel pianoReverb;
[BackgroundDependencyLoader]
private void load(AudioManager audio)
@ -28,7 +29,10 @@ namespace osu.Game.Screens.Menu
Seeya = audio.Samples.Get(@"Intro/welcome/seeya");
if (MenuVoice.Value)
{
welcome = audio.Samples.Get(@"Intro/welcome/welcome");
pianoReverb = audio.Samples.Get(@"Intro/welcome/welcome_piano");
}
}
protected override void LogoArriving(OsuLogo logo, bool resuming)
@ -38,9 +42,11 @@ namespace osu.Game.Screens.Menu
if (!resuming)
{
welcome?.Play();
StartTrack();
pianoReverb?.Play();
Scheduler.AddDelayed(delegate
{
StartTrack();
PrepareMenuLoad();
logo.ScaleTo(1);