Преглед изворни кода

Readd SoundIO as OpenAL fallback (#1356)

Mary пре 5 година
родитељ
комит
686eceb9f6
1 измењених фајлова са 15 додато и 1 уклоњено
  1. 15 1
      Ryujinx/Ui/MainWindow.cs

+ 15 - 1
Ryujinx/Ui/MainWindow.cs

@@ -676,7 +676,21 @@ namespace Ryujinx.Ui
                 }
                 }
                 else
                 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.");
+                    }
                 }
                 }
             }
             }