Esempio n. 1
0
        /// <summary>
        /// Retrieve a textual description of the current PortAudio build.
        /// </summary>
        /// <example>
        /// "PortAudio V19-devel 13 October 2002".
        /// </example>
        /// <returns>PortAudio Build version string.</returns>
        public string GetVersionText()
        {
            var ptr = PortAudioApiNative.Pa_GetVersionText();

            return(Marshal.PtrToStringAnsi(ptr));
        }
Esempio n. 2
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));
        }
Esempio n. 3
0
 /// <summary>
 /// Retrieves the release number of the currently running PortAudio build.
 /// </summary>
 /// <returns>PortAudio Build.</returns>
 public int GetVersion()
 {
     return(PortAudioApiNative.Pa_GetVersion());
 }