On Mon, 9 Feb 2004, Torsten Mohr wrote:
> Hi,
>
> > > thanks for that hint.
> > >
> > > But sadly, the attached program doesn't work, though
> > > i set stop_threshold to 0. I didn't find any functions
> >
> > This is wrong. You need to set this value to sw_params->boundary or
> > greater value to eliminate the stop detection, otherwise with zero,
> > the stream is immediately stopped.
>
> thanks again.
>
> But this doesn't seem to be the problem, the attached file is
> basically the example "minimal capture program" with the
> suggested additions.
>
> The program fails badly. It would be so very great if somebody
> had a hint for me on that one. I tried to find the source of
> the problem, but i didn't succeed.
You've made this stupid bug:
data = (unsigned char *)calloc(SAMPLES*4, 0);
should be:
data = (unsigned char *)calloc(periodsize*4, 1);
Jaroslav
-----
Jaroslav Kysela <[EMAIL PROTECTED]>
Linux Kernel Sound Maintainer
ALSA Project, SuSE Labs
-------------------------------------------------------
The SF.Net email is sponsored by EclipseCon 2004
Premiere Conference on Open Tools Development and Integration
See the breadth of Eclipse activity. February 3-5 in Anaheim, CA.
http://www.eclipsecon.org/osdn
_______________________________________________
Alsa-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/alsa-devel