|
From: Ivan G. <iv...@co...> - 2003-06-16 18:42:00
|
I've been working on a nasty little problem.
I have openH323 working nicely on an embedded
Arm system, and am trying to get it working on
a linux box. I seem to be getting threading and/or
buffering problems, which lock up the box and cause
jitter.
One thing that helped a lot was to change PSoundChannel::Write
in oss.cxx to the following:
BOOL PSoundChannel::Write(const void * buf, PINDEX len)
{
if (!Setup())
return FALSE;
if (os_handle > 0) {
while (!ConvertOSError(::write(os_handle, (void *)buf, len)))
if (GetErrorCode() != Interrupted)
return FALSE;
writeDelay.Delay(len/16);//LINE ADDED HERE
return TRUE;
}
However, I still get jitter. It seems to take several
seconds to start, but then is regular and periodic. Any
ideas/suggestions?
thanks,
Ivan Gevirtz
Director of Technology
CoCo Communications
|