Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PortAudio Error [-9999]: Unanticipated host error #11

Open
goesjon opened this issue Sep 9, 2021 · 1 comment
Open

PortAudio Error [-9999]: Unanticipated host error #11

goesjon opened this issue Sep 9, 2021 · 1 comment

Comments

@goesjon
Copy link

goesjon commented Sep 9, 2021

Hello,

I complied playrec for Octave v6.3.0 and Windows 10 with portaudio v19.7.0 and ASIO SDK v2.3.3. The compilation was successful (I got the playrec.mex file). I have the following devices available (result of the playrec('getDevices') command):

deviceID = 0, name = ASIO4ALL v2, hostAPI = ASIO
deviceID = 1, name = Realtek ASIO, hostAPI = ASIO

When I run the following command for initialization:

playrec('init',48000,1,-1)

I get the following error message:

error: playrec: Init failed to open PortAudio stream
{PortAudio Error [-9999]: Unanticipated host error}

When I ignore this error message and just run the initialization command again, I do not get the error again and I successfully initialize the device. The device after that works perfectly fine. I seriously do not understand why???

Can somebody please help me? How can I resolve this error?

Thank you very much.

Best regards

@goesjon
Copy link
Author

goesjon commented Sep 9, 2021

I found a workaround (unfortunately not a real solution):

try
playrec('init',48000,1,-1)
catch
playrec('init',48000,1,-1)
end_try_catch

"If it looks stupid but it works, it ain't stupid"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant