aboutsummaryrefslogtreecommitdiff
path: root/Ryujinx.Audio/Common/AudioDeviceSession.cs
diff options
context:
space:
mode:
authorgdkchan <gab.dark.100@gmail.com>2021-12-26 10:48:18 -0300
committerGitHub <noreply@github.com>2021-12-26 14:48:18 +0100
commitc0056546e72b148ccc561eba7b8daa6a78f484ae (patch)
treec636be4cea6f618ea3e4ce8bb835053882bf2063 /Ryujinx.Audio/Common/AudioDeviceSession.cs
parent0205b1d7f6eeec9d070e88a55725fef64b975a92 (diff)
Fix bug causing an audio buffer to be enqueued more than once (#2940)
Diffstat (limited to 'Ryujinx.Audio/Common/AudioDeviceSession.cs')
-rw-r--r--Ryujinx.Audio/Common/AudioDeviceSession.cs2
1 files changed, 1 insertions, 1 deletions
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++;