提交 b5f2bec9 authored 作者: Anthony Minessale's avatar Anthony Minessale

fix bug

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@8477 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 085088f3
......@@ -650,12 +650,12 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_gentones(switch_core_session_t *sessi
}
if ((write_frame.datalen = (uint32_t) switch_buffer_read_loop(audio_buffer, write_frame.data,
read_frame->codec->implementation->bytes_per_frame)) <= 0) {
read_codec->implementation->bytes_per_frame)) <= 0) {
break;
}
write_frame.samples = write_frame.datalen / 2;
if (switch_core_session_write_frame(session, &write_frame, SWITCH_IO_FLAG_NONE, 0) != SWITCH_STATUS_SUCCESS) {
break;
}
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论