forked from Mirror/Ryujinx
Fix race condition on OpenALAudioOut (#448)
This commit is contained in:
parent
b2063be597
commit
dd3cb33c9f
1 changed files with 4 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue