1
0
mirror of https://github.com/ppy/osu.git synced 2024-12-15 09:42:54 +08:00

Merge pull request #10925 from peppy/fix-multiple-playback-on-skin-change

Fix skinnable sounds playing more than once on skin change
This commit is contained in:
Dan Balasescu 2020-12-07 18:45:19 +09:00 committed by GitHub
commit cdc7ef8c15
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -102,7 +102,7 @@ namespace osu.Game.Skinning
sampleContainer.Add(Sample = new DrawableSample(ch) { Looping = Looping });
// Start playback internally for the new sample if the previous one was playing beforehand.
if (wasPlaying)
if (wasPlaying && Looping)
Play();
}

View File

@ -159,7 +159,7 @@ namespace osu.Game.Skinning
samplesContainer.Add(sample);
}
if (wasPlaying)
if (wasPlaying && Looping)
Play();
}