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:
parent
ab62390336
commit
8a5e25ce4b
@ -1 +1 @@
|
||||
Subproject commit 31754e8fd0eb840b6aca03ec481b677665999211
|
||||
Subproject commit c5235f4ecfe933c04cbb2ee17adc714b9194fe0a
|
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user