* Re: Broken Pipes
2002-07-25 15:03 Broken Pipes Tony Hardie-Bick
@ 2002-07-25 14:16 ` Paul Davis
0 siblings, 0 replies; 2+ messages in thread
From: Paul Davis @ 2002-07-25 14:16 UTC (permalink / raw)
To: Tony Hardie-Bick; +Cc: alsa-devel
>Am reading audio using snd_pcm_readi() and using short buffer times
>that result in "Broken pipe" errors being returned. Occasionally losing
>audio is not a problem, but do I have to completely reinitialise whenever
>this occurs?
it depends on the sw params you set up (if any). i think the default
is to stop whenever an xrun of any length occurs. i generally set the
stop threshold to ~0U, which means that the driver will keep the
interface running more or less no matter what - my app notes the
-EPIPE return codes and takes its own steps to
stop+reinitialize+restart when it wants to. what behaviour you want
will depend on your application.
--p
-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing
real-time communications platform! Don't just IM. Build it in!
http://www.jabber.com/osdn/xim
^ permalink raw reply [flat|nested] 2+ messages in thread
* Broken Pipes
@ 2002-07-25 15:03 Tony Hardie-Bick
2002-07-25 14:16 ` Paul Davis
0 siblings, 1 reply; 2+ messages in thread
From: Tony Hardie-Bick @ 2002-07-25 15:03 UTC (permalink / raw)
To: alsa-devel
Hi,
Am reading audio using snd_pcm_readi() and using short buffer times
that result in "Broken pipe" errors being returned. Occasionally losing
audio is not a problem, but do I have to completely reinitialise whenever
this occurs?
Tony
-------------------------------------------------------
This sf.net email is sponsored by: Jabber - The world's fastest growing
real-time communications platform! Don't just IM. Build it in!
http://www.jabber.com/osdn/xim
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2002-07-25 15:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-25 15:03 Broken Pipes Tony Hardie-Bick
2002-07-25 14:16 ` Paul Davis
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.