* xrun recovery
@ 2002-10-03 0:14 Florian Bomers
0 siblings, 0 replies; only message in thread
From: Florian Bomers @ 2002-10-03 0:14 UTC (permalink / raw)
To: ALSA devel
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
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2002-10-03 0:14 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-10-03 0:14 xrun recovery Florian Bomers
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.