diff options
Diffstat (limited to 'Ryujinx.Audio.Backends.SoundIo/Native/SoundIoException.cs')
-rw-r--r-- | Ryujinx.Audio.Backends.SoundIo/Native/SoundIoException.cs | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/Ryujinx.Audio.Backends.SoundIo/Native/SoundIoException.cs b/Ryujinx.Audio.Backends.SoundIo/Native/SoundIoException.cs new file mode 100644 index 00000000..a033356e --- /dev/null +++ b/Ryujinx.Audio.Backends.SoundIo/Native/SoundIoException.cs @@ -0,0 +1,11 @@ +using System; +using System.Runtime.InteropServices; +using static Ryujinx.Audio.Backends.SoundIo.Native.SoundIo; + +namespace Ryujinx.Audio.Backends.SoundIo.Native +{ + internal class SoundIoException : Exception + { + internal SoundIoException(SoundIoError error) : base(Marshal.PtrToStringAnsi(soundio_strerror(error))) { } + } +} |