From d3509c6b9860d48e7fbe3f4bbf6586aa94c497ca Mon Sep 17 00:00:00 2001 From: Anthony Minessale Date: Fri, 7 Jul 2006 13:38:14 +0000 Subject: [PATCH] small change for energy detection stuff git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1783 d0543943-73ff-0310-b7d9-9358b9ac24b2 --- src/mod/applications/mod_conference/mod_conference.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/mod/applications/mod_conference/mod_conference.c b/src/mod/applications/mod_conference/mod_conference.c index ec761b5a4b..46e6f528be 100644 --- a/src/mod/applications/mod_conference/mod_conference.c +++ b/src/mod/applications/mod_conference/mod_conference.c @@ -2145,7 +2145,7 @@ static void *SWITCH_THREAD_FUNC input_thread_run(switch_thread_t *thread, void * } /* skip frames that are not actual media or when we are muted or silent */ - if (talking && switch_test_flag(member, MFLAG_CAN_SPEAK)) { + if ((talking || energy_level == 0) && switch_test_flag(member, MFLAG_CAN_SPEAK)) { /* Write the audio into the input buffer */ switch_mutex_lock(member->audio_in_mutex); switch_buffer_write(member->audio_buffer, read_frame->data, read_frame->datalen);