SDRSharp/SDRSharp.Radio/PortAudioSharp/PaHostErrorInfo.cs
2018-03-24 23:01:41 -07:00

20 lines
435 B
C#

using System.Runtime.InteropServices;
namespace PortAudioSharp
{
internal struct PaHostErrorInfo
{
public PaHostApiTypeId hostApiType;
public int errorCode;
[MarshalAs(UnmanagedType.LPStr)]
public string errorText;
public override string ToString()
{
return "[" + ((object)this).GetType().Name + "]\nhostApiType: " + this.hostApiType + "\nerrorCode: " + this.errorCode + "\nerrorText: " + this.errorText;
}
}
}