On Thu, 20 Sep 2001, Adam Wiggins wrote:

>
> Folks,
>
>    When recording via arecord I frequently see:
>
> xrun!!! (at least 12.096 ms long)
>
>    The command line I'm using is:
>
> arecord -D hw:1 -c 12 -r 96000 -f S32_LE -t raw | conv > out.raw
>
>    "conv" is a program I wrote that strips out the all but the first
> two channels, since I couldn't figure out any way to do such a thing
> with arecord or ALSA by itself.

Simply use '-D plughw:1' in latest CVS sources. It works like you expect
(the first two channels are copied).

>    Picking through the source code I found a comment in asoundlib.h
> that describes this state as an "overrun", my guess is that there
> is too much sound data and it's overloading the PCI bus or something.
>
>    Anyone know what this is, and/or how I can deal with it?  Or
> if it's even a serious problem?

The ring buffer inside the kernel space has received too much data, so
some data needs to be discarded. And yes, it's serious problem which has
correlation with the application latency and kernel scheduler. The problem
was discussed many times on the alsa-devel mailing list.

                                                Jaroslav

-----
Jaroslav Kysela <[EMAIL PROTECTED]>
SuSE Linux    http://www.suse.com
ALSA project  http://www.alsa-project.org


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

Reply via email to