提交 447ae463 authored 作者: Anthony Minessale's avatar Anthony Minessale 提交者: Michael Jerris

FS-7891: [mod_spandsp] Allow spandsp dtmf detector to work on rates other than 8k

上级 8934b1cc
......@@ -444,7 +444,7 @@ static switch_bool_t inband_dtmf_callback(switch_media_bug_t *bug, void *user_da
if (switch_resample_create(&pvt->resampler,
read_impl.actual_samples_per_second,
8000,
8 * (read_impl.microseconds_per_packet / 1000),
8 * (read_impl.microseconds_per_packet / 1000) * 2,
SWITCH_RESAMPLE_QUALITY,
1) != SWITCH_STATUS_SUCCESS) {
switch_log_printf(SWITCH_CHANNEL_LOG, SWITCH_LOG_ERROR, "Unable to allocate resampler\n");
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论