提交 f5e183cb authored 作者: Michael Jerris's avatar Michael Jerris

cast for datatype of score.

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@3488 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 ec34d7bd
...@@ -496,7 +496,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_file(switch_core_session_t *se ...@@ -496,7 +496,7 @@ SWITCH_DECLARE(switch_status_t) switch_ivr_record_file(switch_core_session_t *se
j += read_codec->implementation->number_of_channels; j += read_codec->implementation->number_of_channels;
} }
score = energy / samples; score = (uint32_t)(energy / samples);
if (score < fh->thresh) { if (score < fh->thresh) {
if (!--fh->silence_hits) { if (!--fh->silence_hits) {
break; break;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论