SDRSharp/SDRSharp.Radio/PortAudioSharp/PaHostErrorInfo.cs

20 lines
435 B
C#
Raw Normal View History

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;
}
}
}