mirror of
https://github.com/signalwire/freeswitch.git
synced 2025-03-05 02:02:01 +00:00
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
This commit is contained in:
parent
85e4831dfb
commit
d6ace6e831
@ -102,7 +102,7 @@ static switch_status_t shell_stream_file_open(switch_file_handle_t *handle, cons
|
|||||||
|
|
||||||
context->fds[0] = -1;
|
context->fds[0] = -1;
|
||||||
context->fds[1] = -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)) {
|
if (pipe(context->fds)) {
|
||||||
goto error;
|
goto error;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user