[Freeswitch-svn] [commit] r1783 - freeswitch/trunk/src/mod/applications/mod_conference

Freeswitch SVN anthm at freeswitch.org
Fri Jul 7 09:38:17 EDT 2006


Author: anthm
Date: Fri Jul  7 09:38:14 2006
New Revision: 1783

Modified:
   freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c

Log:
small change for energy detection stuff

Modified: freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c
==============================================================================
--- freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c	(original)
+++ freeswitch/trunk/src/mod/applications/mod_conference/mod_conference.c	Fri Jul  7 09:38:14 2006
@@ -2145,7 +2145,7 @@
 		}
 		
 		/* 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);



More information about the Freeswitch-svn mailing list