diff --git a/Vocaluxe/Lib/Sound/CPortAudioPlay.cs b/Vocaluxe/Lib/Sound/CPortAudioPlay.cs index 4fc3bbf0..55072856 100644 --- a/Vocaluxe/Lib/Sound/CPortAudioPlay.cs +++ b/Vocaluxe/Lib/Sound/CPortAudioPlay.cs @@ -649,7 +649,7 @@ namespace Vocaluxe.Lib.Sound outputParams.suggestedLatency = _outputDeviceInfo.defaultLowOutputLatency; uint bufsize = (uint)CConfig.AudioBufferSize; - errorCheck("OpenDefaultStream", PortAudio.Pa_OpenStream( + errorCheck("OpenDefaultStream (playback)", PortAudio.Pa_OpenStream( out _Ptr, IntPtr.Zero, ref outputParams, @@ -901,7 +901,7 @@ namespace Vocaluxe.Lib.Sound if (errorCode == PortAudio.PaError.paStreamIsNotStopped) return false; - CLog.LogError(action + " error: " + PortAudio.Pa_GetErrorText(errorCode)); + CLog.LogError(action + " error (playback): " + PortAudio.Pa_GetErrorText(errorCode)); if (errorCode == PortAudio.PaError.paUnanticipatedHostError) { PortAudio.PaHostErrorInfo errorInfo = PortAudio.Pa_GetLastHostErrorInfo(); diff --git a/Vocaluxe/Lib/Sound/CPortAudioRecord.cs b/Vocaluxe/Lib/Sound/CPortAudioRecord.cs index 884886cb..dd4a631b 100644 --- a/Vocaluxe/Lib/Sound/CPortAudioRecord.cs +++ b/Vocaluxe/Lib/Sound/CPortAudioRecord.cs @@ -148,7 +148,7 @@ namespace Vocaluxe.Lib.Sound inputParams.sampleFormat = PortAudio.PaSampleFormat.paInt16; inputParams.suggestedLatency = PortAudio.Pa_GetDeviceInfo(_DeviceConfig[i].ID).defaultLowInputLatency; - if (errorCheck("OpenStream", PortAudio.Pa_OpenStream( + if (errorCheck("OpenStream (rec)", PortAudio.Pa_OpenStream( out _recHandle[i], ref inputParams, IntPtr.Zero, @@ -159,7 +159,7 @@ namespace Vocaluxe.Lib.Sound new IntPtr(i)))) return false; - if (errorCheck("Start Stream", PortAudio.Pa_StartStream(_recHandle[i]))) + if (errorCheck("Start Stream (rec)", PortAudio.Pa_StartStream(_recHandle[i]))) return false; } } @@ -321,7 +321,7 @@ namespace Vocaluxe.Lib.Sound } catch (Exception e) { - CLog.LogError("Error on Stream Callback: " + e.ToString()); + CLog.LogError("Error on Stream Callback (rec): " + e.ToString()); } return PortAudio.PaStreamCallbackResult.paContinue; @@ -331,7 +331,7 @@ namespace Vocaluxe.Lib.Sound { if (errorCode != PortAudio.PaError.paNoError) { - CLog.LogError(action + " error: " + PortAudio.Pa_GetErrorText(errorCode)); + CLog.LogError(action + " error (rec): " + PortAudio.Pa_GetErrorText(errorCode)); if (errorCode == PortAudio.PaError.paUnanticipatedHostError) { PortAudio.PaHostErrorInfo errorInfo = PortAudio.Pa_GetLastHostErrorInfo();