mirror of
https://github.com/Ryujinx/Ryujinx.git
synced 2024-11-23 14:52:01 +00: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
|
@ -182,7 +182,10 @@ namespace Ryujinx.Audio.OpenAL
|
||||||
{
|
{
|
||||||
foreach (Track Td in Tracks.Values)
|
foreach (Track Td in Tracks.Values)
|
||||||
{
|
{
|
||||||
Td.CallReleaseCallbackIfNeeded();
|
lock (Td)
|
||||||
|
{
|
||||||
|
Td.CallReleaseCallbackIfNeeded();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
//If it's not slept it will waste cycles.
|
//If it's not slept it will waste cycles.
|
||||||
|
|
Loading…
Reference in a new issue