You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We plan to change PaInternalError to paUnanticipatedHostError in PaMacCore_SetError().
Then we will only call PaUtil_SetLastHostErrorInfo() when it is paUnanticipatedHostError.
Describe the bug
If some error occures in a coreaudio function, it always returns
paInternalError
that make troubleshooting too difficult.But the actual error is also stored with with
PaUtil_SetLastHostErrorInfo
. It contradicts the specification ofPa_GetLastHostErrorInfo
in https://github.com/PortAudio/portaudio/blob/master/include/portaudio.hTo Reproduce
Every time when some error occures in portaudio fuctions using CoreAudio.
Expected behavior
Return
paUnanticipatedHostError
and store the acttual information toLastHostErrorInfo
.Actual behavior
Returning
paInternalError
.Pa_GetLastHostErrorInfo
returns the actual information.Desktop (please complete the following information):
Additional context
Seems the problem is in https://github.com/PortAudio/portaudio/blob/master/src/hostapi/coreaudio/pa_mac_core_utilities.c, PaMacCore_SetError:
I'd suggest to replace
result = paInternalError;
withresult = paUnanticipatedHostError;
all times in this function.The text was updated successfully, but these errors were encountered: