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

snd_pcm_readi(),return -11,Resource temporarily unavailable #259

Closed
xukawendi opened this issue Aug 13, 2022 · 1 comment
Closed

snd_pcm_readi(),return -11,Resource temporarily unavailable #259

xukawendi opened this issue Aug 13, 2022 · 1 comment

Comments

@xukawendi
Copy link

i called the function snd_pcm_readi() to capture pcm data, but the function returns -11,and the snd_strerror(-11) shows "Resource temporarily unavailable",How can I resolve this problem?

@perexg
Copy link
Member

perexg commented Aug 18, 2022

Error -11 is EAGAIN. It's standard linux error code for the non-blocking I/O. See man 3 read and look for EAGAIN / O_NONBLOCK comments.

@perexg perexg closed this as completed Aug 18, 2022
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

2 participants