Skip to contentSkip to conversation

Broken Pipes

DISCUSSION Tony Hardie-Bick 2 participants 2 messages Jul 25, 2002

lore
Share & tools
lore
#0 lore raw

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

#1 lore raw
Quoted 4 lines

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