[Freeswitch-trunk] [commit] r13787 - freeswitch/trunk/src

FreeSWITCH SVN anthm at freeswitch.org
Tue Jun 16 14:33:32 PDT 2009


Author: anthm
Date: Tue Jun 16 16:33:31 2009
New Revision: 13787

Log:
init buffer in lead out on speak

Modified:
   freeswitch/trunk/src/switch_ivr_play_say.c

Modified: freeswitch/trunk/src/switch_ivr_play_say.c
==============================================================================
--- freeswitch/trunk/src/switch_ivr_play_say.c	(original)
+++ freeswitch/trunk/src/switch_ivr_play_say.c	Tue Jun 16 16:33:31 2009
@@ -1888,6 +1888,9 @@
 		status = switch_core_speech_read_tts(sh, abuf, &ilen, &flags);
 
 		if (status != SWITCH_STATUS_SUCCESS) {
+			write_frame.datalen = (uint32_t) codec->implementation->decoded_bytes_per_packet;
+			write_frame.samples = (uint32_t) (write_frame.datalen / 2);
+			memset(write_frame.data, 0, write_frame.datalen);
 			for (x = 0; !done && x < lead_in_out; x++) {
 				switch_yield(codec->implementation->microseconds_per_packet);
 				if (timer) {



More information about the Freeswitch-trunk mailing list