mirror of
https://github.com/ppy/osu
synced 2025-02-01 19:02:00 +00:00
Fix potential race in looping sample
As mentioned via GitHub comments. Very unlikely for this to happen unless: the sample takes a short amount of time to load, is very short itself, and the update thread stalls until the sample fully completes.
This commit is contained in:
parent
d3f0c0730d
commit
0c3aef8645
@ -115,8 +115,7 @@ namespace osu.Game.Skinning
|
||||
if (Sample == null)
|
||||
return;
|
||||
|
||||
activeChannel = Sample.Play();
|
||||
activeChannel.Looping = Looping;
|
||||
activeChannel = Sample.Play(Looping);
|
||||
|
||||
Played = true;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user