Hello,

    I have been using ALSA 0.5.x for 4 months now with a Delta1010.  My box
is a Redhat 7.1 Linux, 2.4.12 kernel; AMD Duron 850Mhz, 256MB ram.  I run
X-Windows with VNC viewer to work with a windows NT based audio mixer.  The
only other thing the box does is work with the sound card.

    I Wrote a simple program which has two threads.
Thread #1) Run in a tight loop based on poll() which checks the sound card
to see if data is ready to be read or written.  If data is ready it calls a
function which writes as much data as possible form a pre-filled pool to the
card. If we run out of data in the pool we write zero's instead.  We read a
chunk of data if it is available from the sound card and put it in an
outgoing pool if there is room, if there isn't it is discarded.

Thread #2) Run in a tight loop based on poll() which checks pipes for
availability of data to be read/written.  These pipes are what fills and
pulls from the pools referred to in thread #1.

Here is the problem.  With no CPU load on the system and the sound card
program running at -19 nice (have tried 0 nice and +19 nice as well, and
various combinations in between),  I get EPIPE errors for both playback and
capture for no reason whatsoever.  I can have the CPU pegged grepping files,
searching for files, transfering files, etc. and it goes smooth.  But with
3% cpu it will just randomly "blip" and EPIPE.  There seems to be no rhyme
or reason to these errors.  I can not re-create them by doing anything. They
just happen.  Any help or ideas of what I can do would be helpful.  If
having the source code would be helpful I can attach it in another e-mail.
(the program total is about 25K)

Daniel Hazelbaker
High Desert Church



_______________________________________________
Alsa-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-user

Reply via email to