mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-10-01 12:30:00 +02:00
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
|
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);
|
||||||
|
|
Loading…
Reference in a new issue