提交 93c30a12 authored 作者: Brian West's avatar Brian West

left over commit from tony's conf refactor

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@7451 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 9f18ca07
......@@ -77,9 +77,9 @@ SWITCH_DECLARE(switch_status_t) switch_resample_create(switch_audio_resampler_t
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_NOTICE, "Activate Resampler %d->%d %f\n", resampler->from_rate, resampler->to_rate,
resampler->factor);
resampler->from_size = resample_buffer(to_rate, from_rate, (uint32_t)from_size);
resampler->from = (float *) switch_core_alloc(pool, resampler->from_size);
resampler->from = (float *) switch_core_alloc(pool, resampler->from_size * sizeof(float));
resampler->to_size = resample_buffer(to_rate, from_rate, (uint32_t)to_size); ;
resampler->to = (float *) switch_core_alloc(pool, resampler->to_size);
resampler->to = (float *) switch_core_alloc(pool, resampler->to_size * sizeof(float));
*new_resampler = resampler;
return SWITCH_STATUS_SUCCESS;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论