mirror of
https://github.com/osukey/osukey.git
synced 2025-08-01 21:58:46 +09:00
Don't async/await song selection since audio operations are now on a separate thread.
This commit is contained in:
Submodule osu-framework updated: f8899f9d10...45bff5838d
@ -317,22 +317,17 @@ namespace osu.Game.Screens.Select
|
||||
ensurePlayingSelected(beatmapSetChange);
|
||||
}
|
||||
|
||||
private async Task ensurePlayingSelected(bool preview = false)
|
||||
private void ensurePlayingSelected(bool preview = false)
|
||||
{
|
||||
AudioTrack track = null;
|
||||
AudioTrack track = Beatmap?.Track;
|
||||
|
||||
await Task.Run(() => track = Beatmap?.Track);
|
||||
|
||||
Schedule(delegate
|
||||
if (track != null)
|
||||
{
|
||||
if (track != null)
|
||||
{
|
||||
trackManager.SetExclusive(track);
|
||||
if (preview)
|
||||
track.Seek(Beatmap.Beatmap.Metadata.PreviewTime);
|
||||
track.Start();
|
||||
}
|
||||
});
|
||||
trackManager.SetExclusive(track);
|
||||
if (preview)
|
||||
track.Seek(Beatmap.Beatmap.Metadata.PreviewTime);
|
||||
track.Start();
|
||||
}
|
||||
}
|
||||
|
||||
private void addBeatmapSet(BeatmapSetInfo beatmapSet, BaseGame game)
|
||||
|
Reference in New Issue
Block a user