[Asterisk-Dev] libiax2 OK for production?

Steven Critchfield critch at basesys.com
Mon Jan 31 18:25:23 MST 2005


On Mon, 2005-01-31 at 20:00 -0500, Steve Kann wrote:
> Steve Underwood wrote:
> > This came up before. iaxcomm itself doesn't give such long delays, but 
> > some sound card drivers do. My desktop machine give little latency. My 
> > notebook gives a second or more. I think your sound card is most 
> > likely the source of this latency. However, the fact you get better 
> > results with miniphone means it is not a fundamental problem with the 
> > card and driver (I assume you tried these tests on the same machine, 
> > or they are meaningless). I believe miniphone and iaxcomm use 
> > different ways to drive the sound card. Maybe iaxcomm is doing 
> > something wrong. Sound cards normally work in a high latency mode, 
> > which provides lots of buffering, and have to be switched to low 
> > latency by the application. Maybe it isn't done correctly in iaxcomm 
> > for all cards, or maybe there is some OSS/ALSA conflict. Do you know 
> > what sound card hardware you have, and which driver?
> 
> 
> I haven't examined all the code, but I'm pretty sure the major 
> parameters of what they're doing should be similar:
> 
> They both use OSS
> They both set the card to 8khz mono
> They both set the card to full-duplex.

Okay, and with the comment of using FC3, you are probably getting piped
through Alsa and it's OSS compatibility mode along with the extra
buffering so Alsa can software mix the audio. 

Might want to see if you can detect Alsa and get it into a low latency
mode.
-- 
Steven Critchfield <critch at basesys.com>




More information about the asterisk-dev mailing list