mirror of
https://github.com/ppy/osu.git
synced 2025-01-14 02:22:56 +08:00
Fix audio playback getting paused if playlist changes beatmap
This commit is contained in:
parent
194710eae4
commit
fb78854485
@ -79,7 +79,10 @@ namespace osu.Game.Overlays.Music
|
||||
{
|
||||
BeatmapInfo beatmap = list.FirstVisibleSet?.Beatmaps?.FirstOrDefault();
|
||||
if (beatmap != null)
|
||||
{
|
||||
beatmapBacking.Value = beatmaps.GetWorkingBeatmap(beatmap);
|
||||
beatmapBacking.Value.Track.Restart();
|
||||
}
|
||||
};
|
||||
}
|
||||
|
||||
@ -109,6 +112,7 @@ namespace osu.Game.Overlays.Music
|
||||
}
|
||||
|
||||
beatmapBacking.Value = beatmaps.GetWorkingBeatmap(set.Beatmaps.First());
|
||||
beatmapBacking.Value.Track.Restart();
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user