mirror of
https://github.com/osukey/osukey.git
synced 2025-05-29 17:37:23 +09:00
Merge pull request #18728 from peppy/fix-unsafe-sample-playback
Fix unsafe sample playback in `GameplaySampleTriggerSource`
This commit is contained in:
commit
ea191da496
@ -56,12 +56,12 @@ namespace osu.Game.Rulesets.UI
|
|||||||
PlaySamples(samples);
|
PlaySamples(samples);
|
||||||
}
|
}
|
||||||
|
|
||||||
protected void PlaySamples(ISampleInfo[] samples)
|
protected void PlaySamples(ISampleInfo[] samples) => Schedule(() =>
|
||||||
{
|
{
|
||||||
var hitSound = getNextSample();
|
var hitSound = getNextSample();
|
||||||
hitSound.Samples = samples;
|
hitSound.Samples = samples;
|
||||||
hitSound.Play();
|
hitSound.Play();
|
||||||
}
|
});
|
||||||
|
|
||||||
protected HitObject GetMostValidObject()
|
protected HitObject GetMostValidObject()
|
||||||
{
|
{
|
||||||
|
Loading…
x
Reference in New Issue
Block a user