Hi,

I was wondering for the example xrun_recovery function:

http://www.alsa-project.org/alsa-doc/alsa-lib/_2test_2pcm_8c-example.html#a15

In the ESTRPIPE case, it repeats to resume until it does not return EAGAIN
anymore. Then it calls snd_pcm_prepare only if snd_pcm_resume returned a
negative error code - why is that ? I would assume that if snd_pcm_resume
returns a negative non-EAGAIN value, there is some kind of problem. For me,
calling snd_pcm_prepare only makes sense if the snd_pcm_resume was successful. 

i.e. in the line following "sleep(1)": instead of "if (err < 0)", use "if (err
== 0)". 
Is that correct ?

Thanks,
Florian


-- 
Florian Bomers
Java Sound
Java Software/Sun Microsystems, Inc.
http://java.sun.com/products/java-media/sound/


-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel

Reply via email to