git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13787
d0543943-73ff-0310-b7d9-
9358b9ac24b2
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) {