diff options
| author | Mary <me@thog.eu> | 2020-07-04 02:38:39 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-07-04 02:38:39 +0200 |
| commit | 686eceb9f6a7c5ad64a23d6288708f20512a8b49 (patch) | |
| tree | 74a901c4289c89e07e33d8fc206823ecd986b583 | |
| parent | 2c48750ff078e28bd395e43f0e4686c47b13c762 (diff) | |
Readd SoundIO as OpenAL fallback (#1356)
| -rw-r--r-- | Ryujinx/Ui/MainWindow.cs | 16 |
1 files changed, 15 insertions, 1 deletions
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."); + } } } |
