mirror of
https://gitlab.linphone.org/BC/public/linphone-iphone.git
synced 2026-02-07 14:18:25 +00:00
cleanup code
git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@397 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
parent
8545df07b4
commit
4612f6a43a
1 changed files with 1 additions and 14 deletions
|
|
@ -408,18 +408,7 @@ static void conf_sum(MSFilter *f, ConfState *s){
|
|||
|
||||
if (s->enable_halfduplex>0)
|
||||
{
|
||||
double mystat = powerspectrum_stat_beyond8K(chan);
|
||||
#if 0
|
||||
if (mystat>12)
|
||||
{
|
||||
ms_message("is_speaking (chan=%i) -> on/stat=%.3lf", i, mystat);
|
||||
s->channels[0].is_speaking=20; /* keep RTP unmuted for the next few ms */
|
||||
}
|
||||
else
|
||||
{
|
||||
s->channels[0].is_speaking--;
|
||||
}
|
||||
#else
|
||||
powerspectrum_stat_beyond8K(chan);
|
||||
if (chan->average_psd>s->vad_prob_start)
|
||||
{
|
||||
ms_message("is_speaking (chan=%i) -> on/stat=%.3lf", i, chan->average_psd);
|
||||
|
|
@ -429,9 +418,7 @@ static void conf_sum(MSFilter *f, ConfState *s){
|
|||
{
|
||||
s->channels[0].is_speaking--;
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
}
|
||||
else if (chan->speex_pp!=NULL && s->enable_vad==TRUE)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue