1
0
mirror of https://github.com/ppy/osu.git synced 2025-03-15 01:27:20 +08:00

Reloading samples before playing then when skin change occurs

This commit is contained in:
Terochi 2023-03-14 21:35:52 +01:00
parent 1d5e596615
commit 390ad335d0

View File

@ -115,6 +115,10 @@ namespace osu.Game.Skinning
/// </summary> /// </summary>
public virtual void Play() public virtual void Play()
{ {
if (Scheduler.HasPendingTasks)
// update samples queued due to skin change before playing them
UpdateSubTree();
samplesContainer.ForEach(c => samplesContainer.ForEach(c =>
{ {
if (PlayWhenZeroVolume || c.AggregateVolume.Value > 0) if (PlayWhenZeroVolume || c.AggregateVolume.Value > 0)