From c0056546e72b148ccc561eba7b8daa6a78f484ae Mon Sep 17 00:00:00 2001 From: gdkchan Date: Sun, 26 Dec 2021 10:48:18 -0300 Subject: [PATCH] Fix bug causing an audio buffer to be enqueued more than once (#2940) --- Ryujinx.Audio/Common/AudioDeviceSession.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Ryujinx.Audio/Common/AudioDeviceSession.cs b/Ryujinx.Audio/Common/AudioDeviceSession.cs index 511f3905..820e5103 100644 --- a/Ryujinx.Audio/Common/AudioDeviceSession.cs +++ b/Ryujinx.Audio/Common/AudioDeviceSession.cs @@ -175,7 +175,7 @@ namespace Ryujinx.Audio.Common for (int i = 0; i < buffersToFlush.Length; i++) { - buffersToFlush[i] = _buffers[_hardwareBufferIndex]; + buffersToFlush[i] = _buffers[hardwareBufferIndex]; _bufferAppendedCount--; _bufferRegisteredCount++;