Fix race condition on OpenALAudioOut

This commit is contained in:
gdkchan 2018-10-12 02:33:42 -03:00
commit 975e586ace

View file

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