Hi, i copied the "minimal capture program" from the Alsa page -> Documentation -> Tutorial on using the ALSA Audio API -> A minimal capture program.
I added "int rate = 44100" and changed the wrong parameter "44100" in "snd_pcm_hw_params_set_rate_near" to "&rate". bash# gcc capture.c -lasound bash# a.out default But if i add a "sleep(1)" in the "for(i = 0; i < 10; i++)", the whole program crashes. I want to write a program where some chunk of data is sampled from time to time, with some delay inbetween. The behaviour above (with sleep(1)) is a good example for what i want to do. Can anybody tell me what i need to change to make the program work ok? Thanks for any hints, Torsten. ------------------------------------------------------- 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