1
0
forked from MeloNX/MeloNX

Fix race condition on OpenALAudioOut (#448)

This commit is contained in:
gdkchan 2018-10-12 18:47:53 -03:00 committed by GitHub
parent 68bb719988
commit e58ff533ed

View File

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