diff options
author | Isaac Marovitz <42140194+IsaacMarovitz@users.noreply.github.com> | 2022-12-01 11:53:13 -0500 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-12-01 17:53:13 +0100 |
commit | 456fc04007b7274f6e75d6348c5a4e955f85b488 (patch) | |
tree | 332b0c6e55a78648d6c1e7d25041112fd18afb9f /Ryujinx.Audio.Backends.SDL2/SDL2HardwareDeviceDriver.cs | |
parent | 458452279cee03bfe1bbf2c3daf3fc9722b03a74 (diff) |
Better SDL2 Audio Init Error Logging (#3967)1.1.406
* Better SDL2 Audio Init Error Logging
* Update Ryujinx.Audio.Backends.SDL2/SDL2HardwareDeviceDriver.cs
Co-authored-by: Mary-nyan <thog@protonmail.com>
* Update Ryujinx.Audio.Backends.SDL2/SDL2HardwareDeviceDriver.cs
Co-authored-by: Mary-nyan <thog@protonmail.com>
* Update Ryujinx.Audio.Backends.SDL2/SDL2HardwareDeviceDriver.cs
Co-authored-by: Mary-nyan <thog@protonmail.com>
* Update Ryujinx.Audio.Backends.SDL2/SDL2HardwareDeviceDriver.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Update Ryujinx.Audio.Backends.SDL2/SDL2HardwareDeviceDriver.cs
Co-authored-by: Ac_K <Acoustik666@gmail.com>
* Update SDL2HardwareDeviceDriver.cs
* Update SDL2HardwareDeviceDriver.cs
Co-authored-by: Mary-nyan <thog@protonmail.com>
Co-authored-by: Ac_K <Acoustik666@gmail.com>
Diffstat (limited to 'Ryujinx.Audio.Backends.SDL2/SDL2HardwareDeviceDriver.cs')
-rw-r--r-- | Ryujinx.Audio.Backends.SDL2/SDL2HardwareDeviceDriver.cs | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Ryujinx.Audio.Backends.SDL2/SDL2HardwareDeviceDriver.cs b/Ryujinx.Audio.Backends.SDL2/SDL2HardwareDeviceDriver.cs index 3953b809..b190b4c8 100644 --- a/Ryujinx.Audio.Backends.SDL2/SDL2HardwareDeviceDriver.cs +++ b/Ryujinx.Audio.Backends.SDL2/SDL2HardwareDeviceDriver.cs @@ -1,5 +1,6 @@ using Ryujinx.Audio.Common; using Ryujinx.Audio.Integration; +using Ryujinx.Common.Logging; using Ryujinx.Memory; using Ryujinx.SDL2.Common; using System; @@ -112,6 +113,9 @@ namespace Ryujinx.Audio.Backends.SDL2 if (device == 0) { + Logger.Error?.Print(LogClass.Application, + $"SDL2 open audio device initialization failed with error \"{SDL_GetError()}\""); + return 0; } @@ -119,6 +123,7 @@ namespace Ryujinx.Audio.Backends.SDL2 if (!isValid) { + Logger.Error?.Print(LogClass.Application, "SDL2 open audio device is not valid"); SDL_CloseAudioDevice(device); return 0; |