mirror of
https://github.com/osukey/osukey.git
synced 2025-08-04 07:06:35 +09: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:
@ -115,8 +115,7 @@ namespace osu.Game.Skinning
|
||||
if (Sample == null)
|
||||
return;
|
||||
|
||||
activeChannel = Sample.Play();
|
||||
activeChannel.Looping = Looping;
|
||||
activeChannel = Sample.Play(Looping);
|
||||
|
||||
Played = true;
|
||||
}
|
||||
|
Reference in New Issue
Block a user