mirror of
https://github.com/ppy/osu.git
synced 2025-01-12 17:43:05 +08:00
Restart sound on play
This commit is contained in:
parent
58269f9314
commit
bdb9d4f7d0
@ -124,7 +124,10 @@ namespace osu.Game.Skinning
|
|||||||
samplesContainer.ForEach(c =>
|
samplesContainer.ForEach(c =>
|
||||||
{
|
{
|
||||||
if (PlayWhenZeroVolume || c.AggregateVolume.Value > 0)
|
if (PlayWhenZeroVolume || c.AggregateVolume.Value > 0)
|
||||||
|
{
|
||||||
|
c.Stop();
|
||||||
c.Play();
|
c.Play();
|
||||||
|
}
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user