mirror of
https://git.ryujinx.app/projects/Kenji-NX.git
synced 2026-11-19 17:21:15 +01:00
Fix race condition on OpenALAudioOut (#448)
This commit is contained in:
1 parent
b2063be597
commit
dd3cb33c9f
1 file changed
+4
-1
@@ -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.
|
||||||
|
|||||||
Reference in new issue
Block a user