1
0
mirror of https://github.com/ppy/osu.git synced 2026-05-25 20:40:59 +08:00

Tidy up WaveformTestBeatmap

This commit is contained in:
Dean Herbert
2019-05-31 14:57:11 +09:00
Unverified
parent b52276c489
commit 7bed4eb23b
+4 -2
View File
@@ -42,9 +42,11 @@ namespace osu.Game.Tests
protected override Texture GetBackground() => null;
protected override Waveform GetWaveform() => new Waveform(trackStore.GetStream(reader.Filenames.First(f => f.EndsWith(".mp3"))));
protected override Waveform GetWaveform() => new Waveform(trackStore.GetStream(firstAudioFile));
protected override Track GetTrack() => trackStore.Get(reader.Filenames.First(f => f.EndsWith(".mp3")));
protected override Track GetTrack() => trackStore.Get(firstAudioFile);
private string firstAudioFile => reader.Filenames.First(f => f.EndsWith(".mp3"));
private Stream getBeatmapStream() => reader.GetStream(reader.Filenames.First(f => f.EndsWith(".osu")));