SoundIOException.cs 278 B

12345678910
  1. using System;
  2. using System.Runtime.InteropServices;
  3. namespace SoundIOSharp
  4. {
  5. public class SoundIOException : Exception
  6. {
  7. internal SoundIOException(SoundIoError errorCode) : base (Marshal.PtrToStringAnsi(Natives.soundio_strerror((int) errorCode))) { }
  8. }
  9. }