linphone-developers
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Linphone-developers] Speexec.c


From: Simon Morlat
Subject: Re: [Linphone-developers] Speexec.c
Date: Thu, 5 Oct 2006 22:02:31 +0200
User-agent: KMail/1.9.4

Hello,

This 320 stands for 160 samples of 2 bytes, *6 it represents 250 ms at 8khz 
sampling rate.
This if statement is a workaround for the case where there is too much data in 
the input 0 of the echo canceler. Normally this should not happen (and I 
never saw this warning), but for other people who are developping new 
applications on top of mediastreamer2 this can be useful to understand what's 
happening and to preserve a correct behaviour.
So if this happens the input is purged and the echo canceler reset.

Simon

Le mercredi 4 octobre 2006 17:00, address@hidden a 
écrit :
> Hello everybody,
>
> I have a little question about speexec.c
>
> I don't understand in speex_ec_process this line :
>
> "if (ms_bufferizer_get_avail(&s->in[0])> 320 * 6) //  ABOVE 250ms ->
> useless */
> ----"
>
> Where does this "320" comes from ? And its friends the "*6" and the "250ms"
> ?
>
> Thank you in advance fore your help,
> Sincerly
>
> Jean-Christophe
>
>
>
>
>
>
> _______________________________________________
> Linphone-developers mailing list
> address@hidden
> http://lists.nongnu.org/mailman/listinfo/linphone-developers




reply via email to

[Prev in Thread] Current Thread [Next in Thread]