]> git.ipfire.org Git - thirdparty/freeswitch.git/commitdiff
small change for energy detection stuff
authorAnthony Minessale <anthony.minessale@gmail.com>
Fri, 7 Jul 2006 13:38:14 +0000 (13:38 +0000)
committerAnthony Minessale <anthony.minessale@gmail.com>
Fri, 7 Jul 2006 13:38:14 +0000 (13:38 +0000)
git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@1783 d0543943-73ff-0310-b7d9-9358b9ac24b2

src/mod/applications/mod_conference/mod_conference.c

index ec761b5a4b3e2d8a7827faaf3e775a2c7f267cba..46e6f528beb2f3b0bf17de29664c76181656a8fe 100644 (file)
@@ -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);