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:
parent
1d5e596615
commit
390ad335d0
@ -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)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user