Guruswamy B M | 7 Jun 2012 21:11
Picon

"Un anticipated host error" while opening portaudio stream

Hi All,

What is an "Un anticipated host error" while opening portaudio stream?
How to get rid of this problem?

I am using port audio for playing and recording for audio files in my
application. It works fine, but if continuosly play and record several
times, at one point of time "Un anticipated host error" is coming. Can
any one suggest me what may be the problem for this.

Reards,
Guru
Phil Burk | 7 Jun 2012 21:41

Re: "Un anticipated host error" while opening portaudio stream

Hello Guru,

Some more information would be helpful.

What OS are you using? Windows 7, Mac OS X 10.6.8? Linux?

What audio devices do you have? Built-in? USB or Firewire?

What version of PortAudio are you using? Stable snapshot? Nightly 
snapshot? from SVN?

What API are you using? WMME, WASAPI? ASIO?

What settings did you use when calling Pa_OpenStream()?

Are any other audio programs running at the same time?

Thanks,
Phil Burk

On 6/7/12 12:11 PM, Guruswamy B M wrote:
> Hi All,
>
> What is an "Un anticipated host error" while opening portaudio stream?
> How to get rid of this problem?
>
> I am using port audio for playing and recording for audio files in my
> application. It works fine, but if continuosly play and record several
> times, at one point of time "Un anticipated host error" is coming. Can
> any one suggest me what may be the problem for this.
(Continue reading)

Ross Bencina | 7 Jun 2012 22:32
Favicon

Re: "Un anticipated host error" while opening portaudio stream

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.

Thanks,

Ross.

Gmane