[linux-audio-dev] Real Time with ALSA

New Message Reply About this list Date view Thread view Subject view Author view Other groups

Subject: [linux-audio-dev] Real Time with ALSA
From: FHTW-TK wavelet (s0379043_AT_fhtw-berlin.de)
Date: Thu May 03 2001 - 16:13:50 EEST


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!.


New Message Reply About this list Date view Thread view Subject view Author view Other groups

This archive was generated by hypermail 2b28 : Thu May 03 2001 - 17:17:39 EEST