cleanup code

git-svn-id: svn+ssh://svn.savannah.nongnu.org/linphone/trunk@397 3f6dc0c8-ddfe-455d-9043-3cd528dc4637
This commit is contained in:
aymeric 2009-04-01 11:04:30 +00:00
parent 8545df07b4
commit 4612f6a43a

View file

@ -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)
{