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

add rate and channel count params to executed command

git-svn-id: http://svn.freeswitch.org/svn/freeswitch/trunk@13852 d0543943-73ff-0310-b7d9-9358b9ac24b2
上级 85e4831d
......@@ -102,7 +102,7 @@ static switch_status_t shell_stream_file_open(switch_file_handle_t *handle, cons
context->fds[0] = -1;
context->fds[1] = -1;
context->command = switch_core_strdup(handle->memory_pool, path);
context->command = switch_core_sprintf(handle->memory_pool, "%s -r %d -c %d", path, handle->samplerate, handle->channels);
if (pipe(context->fds)) {
goto error;
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论