Re: [Alsa-devel] Docu:: Alsa Audio API:: A minimal capture program

2004-02-09 Thread Torsten Mohr
Hi, > You've made this stupid bug: > > data = (unsigned char *)calloc(SAMPLES*4, 0); > > should be: > > data = (unsigned char *)calloc(periodsize*4, 1); thank you so very much for that hint, that was the proble

Re: [Alsa-devel] Docu:: Alsa Audio API:: A minimal capture program

2004-02-08 Thread Torsten Mohr
ery 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. Thanks, Torsten. #define _GNU_SOURCE #include #include #include #include #include #include #include //#include "sound.h" //#include "settings.h" #if

Re: [Alsa-devel] Docu:: Alsa Audio API:: A minimal capture program

2004-01-30 Thread Torsten Mohr
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 to set buffersize to 0, it doesn't seem to be in the software parameters. It would be great, if anybody had a hint. Regards, Torsten. >

[Alsa-devel] Docu:: Alsa Audio API:: A minimal capture program

2004-01-27 Thread Torsten Mohr
en. 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 Pr

[Alsa-devel] ALSA Howto capture code

2004-01-24 Thread Torsten Mohr
ge it to work? I think i need to add calls to snd_pcm_pause()? 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.

[Alsa-devel] Code to capture a buffer

2004-01-23 Thread Torsten Mohr
ectly ok, if the data buffers that are captured are not consecutive. The code basically works, but whenever i try to capture the buffer a SECOND time, the whole program crashes. Has anybody got a hint for me on what could be wrong? Thanks for any hints, Torsten. #define _GNU_SOURCE #include #in

Re: [Alsa-devel] wolk kernel headers

2003-02-11 Thread torsten
i thought it's fixed on kde cvs... I have searched bugs.kde.org, but I find no mention. It may be fixed in CVS, I'm using release 3.1. Torsten --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld =

[Alsa-devel] wolk kernel headers

2003-02-10 Thread torsten
aders into /usr/include? Torsten --- This SF.NET email is sponsored by: SourceForge Enterprise Edition + IBM + LinuxWorld = Something 2 See! http://www.vasoftware.com ___ Alsa-devel mailing list [EMAIL P

Re: [Alsa-devel] playing samples in parallel

2002-02-26 Thread Torsten Mohr
Hi, thank you for your answer, it cleared things quite up for me, i think i know now what to do. Best regards, Torsten. ___ Alsa-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/alsa-devel

Re: [Alsa-devel] playing samples in parallel

2002-02-25 Thread Torsten Mohr
Hi everybody, i don't know, is my question off-topic? Where can i get some help? Would it help to mail the sources? Is it an obvious mistake i make? I really tried to describe the problem in detail, are there any important points missing? Best regards, To

[Alsa-devel] playing samples in parallel

2002-02-24 Thread Torsten Mohr
ync_handler to inform my program when a started sample is played completely. How can i do this? It seems that the handler is called (buffer_time/period_time) times during each sample, is that correct? Best regards, Torsten. http://www.s.netic.de/tmohr/linux.html __