Hi!,

         I'm trying to develop a videoconference program for 
LinuX. I'm working now with the audio. I need to read data from the 
soundcard, codify it to mp3, decode and write in soundcard.

         I did some tests, using ALSA drivers, and POSIX Threads, only 
read-write  but all of them have a big delay and a bad audio quality. 

         My program:

main()
{

 create_thread()
 
}


funThread()
{

for(;;)

{
         read_soundcard;
         write_soundcard;
}

}
         

         I use:
                 short int buffer[576].
                 read_params.mode                   = SND_PCM_MODE_BLOCK;
                 read_params.buf.block.frag_size    =  576;
                 rateread                               = 16000;
                 voicesread                     = 1;

         My problem is that, the first delays are short, but the  next delays 
are big (almost 1s ). Can somebody help me?.

David Garcia Casta�o.

Thanks!.

Reply via email to