From 32c09af71a5bebdb711b175627e1e26370275d96 Mon Sep 17 00:00:00 2001 From: Mary Date: Sun, 19 Sep 2021 13:42:16 +0200 Subject: [PATCH] amadeus: Fix regression from #2654 on ListAudioDeviceName --- Ryujinx.HLE/HOS/Services/Audio/AudioRenderer/AudioDevice.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Ryujinx.HLE/HOS/Services/Audio/AudioRenderer/AudioDevice.cs b/Ryujinx.HLE/HOS/Services/Audio/AudioRenderer/AudioDevice.cs index beecb0a3..724a1e9e 100644 --- a/Ryujinx.HLE/HOS/Services/Audio/AudioRenderer/AudioDevice.cs +++ b/Ryujinx.HLE/HOS/Services/Audio/AudioRenderer/AudioDevice.cs @@ -127,12 +127,12 @@ namespace Ryujinx.HLE.HOS.Services.Audio.AudioRenderer foreach (VirtualDeviceSession session in _sessions) { - if (!_isUsbDeviceSupported && _sessions[i].Device.IsUsbDevice()) + if (!_isUsbDeviceSupported && session.Device.IsUsbDevice()) { continue; } - result[i] = _sessions[i].Device.Name; + result[i] = session.Device.Name; i++; }