1
0
Fork 0
mirror of https://github.com/Ryujinx/Ryujinx.git synced 2024-12-23 13:52:02 +00:00

Fix race condition on OpenALAudioOut (#448)

This commit is contained in:
gdkchan 2018-10-12 18:47:53 -03:00 committed by GitHub
parent b2063be597
commit dd3cb33c9f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -182,7 +182,10 @@ namespace Ryujinx.Audio.OpenAL
{
foreach (Track Td in Tracks.Values)
{
Td.CallReleaseCallbackIfNeeded();
lock (Td)
{
Td.CallReleaseCallbackIfNeeded();
}
}
//If it's not slept it will waste cycles.