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

Simplify waveform construction

This commit is contained in:
Dean Herbert 2017-10-12 18:50:12 +09:00
parent ab62390336
commit 8a5e25ce4b
2 changed files with 2 additions and 10 deletions

@ -1 +1 @@
Subproject commit 31754e8fd0eb840b6aca03ec481b677665999211
Subproject commit c5235f4ecfe933c04cbb2ee17adc714b9194fe0a

View File

@ -574,15 +574,7 @@ namespace osu.Game.Beatmaps
catch { return new TrackVirtual(); }
}
protected override Waveform GetWaveform()
{
try
{
var trackData = store.GetStream(getPathForFile(Metadata.AudioFile));
return trackData == null ? new Waveform() : new Waveform(trackData);
}
catch { return new Waveform(); }
}
protected override Waveform GetWaveform() => new Waveform(store.GetStream(getPathForFile(Metadata.AudioFile)));
}
/// <summary>