Пример #1
0
 internal static extern IntPtr Pa_GetErrorText(PortAudioError error);
 /// <summary>
 /// Translate the supplied PortAudio error code into a human readable message.
 /// </summary>
 /// <param name="error">Error code to retrieve description of.</param>
 /// <returns>Description of given error.</returns>
 public string GetErrorText(PortAudioError error)
 {
     var ptr = PortAudioApiNative.Pa_GetErrorText(error);
     return Marshal.PtrToStringAnsi(ptr);
 }
Пример #3
0
        /// <summary>
        /// Translate the supplied PortAudio error code into a human readable message.
        /// </summary>
        /// <param name="error">Error code to retrieve description of.</param>
        /// <returns>Description of given error.</returns>
        public string GetErrorText(PortAudioError error)
        {
            var ptr = PortAudioApiNative.Pa_GetErrorText(error);

            return(Marshal.PtrToStringAnsi(ptr));
        }
Пример #4
0
 internal static extern IntPtr Pa_GetErrorText(PortAudioError error);