added rec/blayback descriptions to portaudio error messages
This commit is contained in:
1 parent
89b0e522f2
commit
b432531b70
2 files changed
+6
-6
No files matched your search
@@ -649,7 +649,7 @@ namespace Vocaluxe.Lib.Sound
|
|||||||
outputParams.suggestedLatency = _outputDeviceInfo.defaultLowOutputLatency;
|
outputParams.suggestedLatency = _outputDeviceInfo.defaultLowOutputLatency;
|
||||||
|
|
||||||
uint bufsize = (uint)CConfig.AudioBufferSize;
|
uint bufsize = (uint)CConfig.AudioBufferSize;
|
||||||
errorCheck("OpenDefaultStream", PortAudio.Pa_OpenStream(
|
errorCheck("OpenDefaultStream (playback)", PortAudio.Pa_OpenStream(
|
||||||
out _Ptr,
|
out _Ptr,
|
||||||
IntPtr.Zero,
|
IntPtr.Zero,
|
||||||
ref outputParams,
|
ref outputParams,
|
||||||
@@ -901,7 +901,7 @@ namespace Vocaluxe.Lib.Sound
|
|||||||
if (errorCode == PortAudio.PaError.paStreamIsNotStopped)
|
if (errorCode == PortAudio.PaError.paStreamIsNotStopped)
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
CLog.LogError(action + " error: " + PortAudio.Pa_GetErrorText(errorCode));
|
CLog.LogError(action + " error (playback): " + PortAudio.Pa_GetErrorText(errorCode));
|
||||||
if (errorCode == PortAudio.PaError.paUnanticipatedHostError)
|
if (errorCode == PortAudio.PaError.paUnanticipatedHostError)
|
||||||
{
|
{
|
||||||
PortAudio.PaHostErrorInfo errorInfo = PortAudio.Pa_GetLastHostErrorInfo();
|
PortAudio.PaHostErrorInfo errorInfo = PortAudio.Pa_GetLastHostErrorInfo();
|
||||||
|
|||||||
@@ -148,7 +148,7 @@ namespace Vocaluxe.Lib.Sound
|
|||||||
inputParams.sampleFormat = PortAudio.PaSampleFormat.paInt16;
|
inputParams.sampleFormat = PortAudio.PaSampleFormat.paInt16;
|
||||||
inputParams.suggestedLatency = PortAudio.Pa_GetDeviceInfo(_DeviceConfig[i].ID).defaultLowInputLatency;
|
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],
|
out _recHandle[i],
|
||||||
ref inputParams,
|
ref inputParams,
|
||||||
IntPtr.Zero,
|
IntPtr.Zero,
|
||||||
@@ -159,7 +159,7 @@ namespace Vocaluxe.Lib.Sound
|
|||||||
new IntPtr(i))))
|
new IntPtr(i))))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
if (errorCheck("Start Stream", PortAudio.Pa_StartStream(_recHandle[i])))
|
if (errorCheck("Start Stream (rec)", PortAudio.Pa_StartStream(_recHandle[i])))
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -321,7 +321,7 @@ namespace Vocaluxe.Lib.Sound
|
|||||||
}
|
}
|
||||||
catch (Exception e)
|
catch (Exception e)
|
||||||
{
|
{
|
||||||
CLog.LogError("Error on Stream Callback: " + e.ToString());
|
CLog.LogError("Error on Stream Callback (rec): " + e.ToString());
|
||||||
}
|
}
|
||||||
|
|
||||||
return PortAudio.PaStreamCallbackResult.paContinue;
|
return PortAudio.PaStreamCallbackResult.paContinue;
|
||||||
@@ -331,7 +331,7 @@ namespace Vocaluxe.Lib.Sound
|
|||||||
{
|
{
|
||||||
if (errorCode != PortAudio.PaError.paNoError)
|
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)
|
if (errorCode == PortAudio.PaError.paUnanticipatedHostError)
|
||||||
{
|
{
|
||||||
PortAudio.PaHostErrorInfo errorInfo = PortAudio.Pa_GetLastHostErrorInfo();
|
PortAudio.PaHostErrorInfo errorInfo = PortAudio.Pa_GetLastHostErrorInfo();
|
||||||
|
|||||||
Reference in new issue
Block a user