[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [Linphone-developers] Bursty rtp traffic
From: |
Simon Morlat |
Subject: |
Re: [Linphone-developers] Bursty rtp traffic |
Date: |
Tue, 30 Jun 2009 12:34:51 +0200 |
User-agent: |
KMail/1.11.4 (Linux/2.6.29-2-amd64; KDE/4.2.4; x86_64; ; ) |
Hi Vadim,
In order to synchronize the MSTicker to an external time, you can use:
/**
* Override MSTicker's time function.
* This can be used to control the ticker from an external time provider, for
example the
* clock of a sound card.
*
* @param ticker A #MSTicker object.
* @param func A replacement method for calculating "current time"
* @param user_data Any pointer to user private data.
*/
void ms_ticker_set_time_func(MSTicker *ticker, MSTickerTimeFunc func, void
*user_data);
And it's no more "hackish" !
Simon
Le mardi 30 juin 2009 02:23:15, Vadim Lebedev a écrit :
> Hello,
>
> We've made progress on this issue:
> The reason of the burst packet stream is because the microphone
> input callback is desynchronized form msticker timer.
> We 've implemented a 'hackish' solution which amounts to calling
> run_graph in the microphone capture callback....
> This solves the problem....
>
> I'll send out code shortly for review
>
> Thanks
> Vadim
>
> Le 11 juin 09 à 03:16, Vadim Lebedev a écrit :
> > Hi while still tracking the bursty rtp output issue,
> >
> > I'm trying to analyze how speexec.c works -- it is pretty hairy
> > stuff,
> > so i modified it a little bit to simplify the reading:
> >
> > I introduced couple of #defines
> >
> > #define REFSIG f->inputs[0]
> > #define ECOSIG f->inputs[1]
> > #define REFBUF s->in[0]
> > #define ECOBUF s->in[1]
> >
> > #define TOSPKR f->outputs[0]
> > #define TOCODR f->outputs[1]
> >
> >
> > this improves readability a lot
> > I've added some comments
> > and fixed couple of trivial bugs (IMO) all bug are marked // Fix:
> > Vadim
> >
> >
> > I've also adde couple of questions in the comments where i suspect a
> > problem
> > but not sure about it...
> >
> >
> > Simon, can you please review the code?
> >
> > Thanks
> > Vadim
> > <speexec-new.c>
>
> _______________________________________________
> Linphone-developers mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/linphone-developers