aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Audio/OpenAL/OpenALAudioOut.cs
diff options
context:
space:
mode:
Diffstat (limited to 'Ryujinx.Audio/OpenAL/OpenALAudioOut.cs')
-rw-r--r--Ryujinx.Audio/OpenAL/OpenALAudioOut.cs5
1 files changed, 4 insertions, 1 deletions
diff --git a/Ryujinx.Audio/OpenAL/OpenALAudioOut.cs b/Ryujinx.Audio/OpenAL/OpenALAudioOut.cs
index d7a2a777..9a75c568 100644
--- a/Ryujinx.Audio/OpenAL/OpenALAudioOut.cs
+++ b/Ryujinx.Audio/OpenAL/OpenALAudioOut.cs
@@ -182,7 +182,10 @@ namespace Ryujinx.Audio.OpenAL
{
foreach (Track Td in Tracks.Values)
{
- Td.CallReleaseCallbackIfNeeded();
+ lock (Td)
+ {
+ Td.CallReleaseCallbackIfNeeded();
+ }
}
//If it's not slept it will waste cycles.