提交 50a65440 authored 作者: Anthony Minessale's avatar Anthony Minessale

but it should compile doh


git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@233 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 82d141df
......@@ -111,12 +111,12 @@ static switch_status switch_raw_encode(switch_codec *codec,
printf("Activate Resample %d->%d\n", codec->implementation->samples_per_second, other_codec->implementation->samples_per_second);
context->enc_from = codec->implementation->samples_per_second;
context->enc_to = other_codec->implementation->samples_per_second;
context->enc_factor = ((double)other_codec->implementation->samples_per_second / (double)codec->implementation->samples_per_second);
context->enc_factor = ((double) context->enc_from / (double)context->enc_to);
context->enc_resampler = resample_open(1, context->enc_factor, context->enc_factor);
}
if (context->enc_from) {
}
return SWITCH_STATUS_SUCCESS;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论