From 686eceb9f6a7c5ad64a23d6288708f20512a8b49 Mon Sep 17 00:00:00 2001 From: Mary Date: Sat, 4 Jul 2020 02:38:39 +0200 Subject: [PATCH] Readd SoundIO as OpenAL fallback (#1356) --- Ryujinx/Ui/MainWindow.cs | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/Ryujinx/Ui/MainWindow.cs b/Ryujinx/Ui/MainWindow.cs index cc615545..0e3262b2 100644 --- a/Ryujinx/Ui/MainWindow.cs +++ b/Ryujinx/Ui/MainWindow.cs @@ -676,7 +676,21 @@ namespace Ryujinx.Ui } else { - Logger.PrintWarning(LogClass.Audio, "OpenAL is not supported, falling back to dummy audio out."); + Logger.PrintWarning(LogClass.Audio, "OpenAL is not supported, trying to fall back to SoundIO."); + + if (SoundIoAudioOut.IsSupported) + { + Logger.PrintWarning(LogClass.Audio, "Found SoundIO, changing configuration."); + + ConfigurationState.Instance.System.AudioBackend.Value = AudioBackend.SoundIo; + SaveConfig(); + + return new SoundIoAudioOut(); + } + else + { + Logger.PrintWarning(LogClass.Audio, "SoundIO is not supported, falling back to dummy audio out."); + } } }