Re: "Un anticipated host error" while opening portaudio stream
Ross Bencina <rossb-lists <at> audiomulch.com>
2012-06-07 20:32:08 GMT
On 8/06/2012 5:11 AM, Guruswamy B M wrote:
> What is an "Un anticipated host error" while opening portaudio stream?
It means PortAudio got an error from the native API that it wasn't able
to translate into a meaningful PortAudio error code.
Possibly it indicates a PortAudio bug, or possibly it is just a native
limitation. You'll need to answer Phil's questions for us to help further.
Also, another question:
When you receive this error code you can call Pa_GetLastHostErrorInfo()
to get more error information. Please do this and let us know the
results. You can use some code like this to print the error info:
const PaHostErrorInfo* errorInfo = Pa_GetLastHostErrorInfo();
fprintf( stderr, "%s (%d)\n", errorInfo->errorText, errorInfo->errorCode );
> How to get rid of this problem?
It could be many different errors. Perhaps something simple, perhaps
not. We will need to know the answer to Phil's questions, and also the
error info answer above to give you more specifics.