Exemple #1
0
 private bool errorCheck(String action, PortAudio.PaError errorCode)
 {
     if (errorCode != PortAudio.PaError.paNoError)
     {
         log(action + " error: " + PortAudio.Pa_GetErrorText(errorCode));
         if (errorCode == PortAudio.PaError.paUnanticipatedHostError)
         {
             PortAudio.PaHostErrorInfo errorInfo = PortAudio.Pa_GetLastHostErrorInfo();
             log("- Host error API type: " + errorInfo.hostApiType);
             log("- Host error code: " + errorInfo.errorCode);
             log("- Host error text: " + errorInfo.errorText);
         }
         return(true);
     }
     else
     {
         log(action + " OK");
         return(false);
     }
 }