* Broken pipe problems (with details)
@ 2002-07-20 15:06 Tony Hardie-Bick
0 siblings, 0 replies; only message in thread
From: Tony Hardie-Bick @ 2002-07-20 15:06 UTC (permalink / raw)
To: alsa-devel
Hi,
I'm writing an app that does audio analysis in real time. It works fine
under OSS. Moved to a laptop for demo purposes, using ALSA, and I've
found it incredibly difficult to reliably get audio from the soundcard. I
am considering using JACK, since it's clear that may save a lot of pain
long term. However, I would like to avoid recoding for now, if there is
something simple I am doing wrong with ALSA.
Basically, with a short input buffer of around 2000 frames (using stereo
16 bit 44.1kHz, no output stream) I can get the app to run until I call
up any other system resources, ie, start another app, or just flick
windows under KDE, thus causing some scheduling adjustment. Then it just
gives up. I get a "Broken pipe" error returned from the snd_pcm_readi()
call. snd_pcm_prepare() and snd_pcm_resume() aren't able to deal with
this, and so I'm left with setting up the whole connection all over again,
which surely shouldn't be necessary.
I have based the code on the latency.c example app, but am posting now,
rather than go through all the other possible methods that are given
in latency.c. In the present app, there is no problem with occasionally
losing a few milliseconds of audio data.
Thanks in advance,
Tony
-------------------------------------------------------
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-07-20 15:06 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2002-07-20 15:06 Broken pipe problems (with details) Tony Hardie-Bick
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.