mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-01-21 21:28:08 +00:00
test version for halfduplex
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@337 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
bbff2ea0ac
commit
43ec7a31fb
1 changed files with 4 additions and 1 deletions
|
|
@ -159,6 +159,8 @@ static void channel_init(ConfState *s, Channel *chan, int pos){
|
|||
|
||||
static void channel_uninit(Channel *chan){
|
||||
ms_bufferizer_uninit(&chan->buff);
|
||||
chan->is_speaking=0;
|
||||
chan->energy=0;
|
||||
#ifndef DISABLE_SPEEX
|
||||
if (chan->speex_pp!=NULL)
|
||||
speex_preprocess_state_destroy(chan->speex_pp);
|
||||
|
|
@ -393,9 +395,10 @@ static void conf_sum(MSFilter *f, ConfState *s){
|
|||
if (s->enable_halfduplex>0)
|
||||
{
|
||||
double mystat = powerspectrum_stat_beyond8K(chan);
|
||||
//ms_message("is_speaking (chan=%i) -> on/stat=%.3lf", i, mystat);
|
||||
if (mystat>10)
|
||||
{
|
||||
ms_message("is_speaking (chan=%i) -> on/stat=%d", i, mystat);
|
||||
ms_message("is_speaking (chan=%i) -> on/stat=%.3lf", i, mystat);
|
||||
s->channels[0].is_speaking=20; /* keep RTP muted for the next few ms */
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue